Skip to content

Commit fa93522

Browse files
gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)
(cherry picked from commit 5eb7fd4) Co-authored-by: Wulian <1055917385@qq.com>
1 parent 5f5624d commit fa93522

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
@@ -348,7 +348,8 @@ def _wmi_query(table, *keys):
348348
]
349349

350350
_WIN32_SERVER_RELEASES = [
351-
((10, 1, 0), "post2022Server"),
351+
((10, 1, 0), "post2025Server"),
352+
((10, 0, 26100), "2025Server"),
352353
((10, 0, 20348), "2022Server"),
353354
((10, 0, 17763), "2019Server"),
354355
((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)