Skip to content

Commit 5eb7fd4

Browse files
authored
gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)
1 parent 2041a95 commit 5eb7fd4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/platform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ def _wmi_query(table, *keys):
353353
]
354354

355355
_WIN32_SERVER_RELEASES = [
356-
((10, 1, 0), "post2022Server"),
356+
((10, 1, 0), "post2025Server"),
357+
((10, 0, 26100), "2025Server"),
357358
((10, 0, 20348), "2022Server"),
358359
((10, 0, 17763), "2019Server"),
359360
((6, 4, 0), "2016Server"),
Lines changed: 1 addition & 0 deletions
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)