Skip to content

Commit

Permalink
pythongh-127732: Add Windows Server 2025 detection to platform module (
Browse files Browse the repository at this point in the history
…pythonGH-127733)

(cherry picked from commit 5eb7fd4)

Co-authored-by: Wulian <[email protected]>
  • Loading branch information
Wulian233 authored and miss-islington committed Dec 9, 2024
1 parent 075c41d commit ce1e2b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ def _wmi_query(table, *keys):
]

_WIN32_SERVER_RELEASES = [
((10, 1, 0), "post2022Server"),
((10, 1, 0), "post2025Server"),
((10, 0, 26100), "2025Server"),
((10, 0, 20348), "2022Server"),
((10, 0, 17763), "2019Server"),
((6, 4, 0), "2016Server"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The :mod:`platform` module now correctly detects Windows Server 2025.

0 comments on commit ce1e2b9

Please sign in to comment.