Skip to content

Commit 310efda

Browse files
gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)
(cherry picked from commit 5eb7fd4) Co-authored-by: Wulian <[email protected]>
1 parent 075c41d commit 310efda

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/platform.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ def _wmi_query(table, *keys):
354354
]
355355

356356
_WIN32_SERVER_RELEASES = [
357-
((10, 1, 0), "post2022Server"),
357+
((10, 1, 0), "post2025Server"),
358+
((10, 0, 26100), "2025Server"),
358359
((10, 0, 20348), "2022Server"),
359360
((10, 0, 17763), "2019Server"),
360361
((6, 4, 0), "2016Server"),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The :mod:`platform` module now correctly detects Windows Server 2025.

0 commit comments

Comments
 (0)