gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)

This commit is contained in:
Wulian 2024-12-09 20:24:26 +08:00 committed by GitHub
parent 2041a95e68
commit 5eb7fd4d0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -353,7 +353,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"),

View File

@ -0,0 +1 @@
The :mod:`platform` module now correctly detects Windows Server 2025.