https://github.com/python/cpython/commit/310efdabf556c513de9bf38820e20f5289931b55
commit: 310efdabf556c513de9bf38820e20f5289931b55
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: zooba <[email protected]>
date: 2024-12-09T12:50:34Z
summary:

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

(cherry picked from commit 5eb7fd4d0fc37b91058086181afebec41e66e5ad)

Co-authored-by: Wulian <[email protected]>

files:
A Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst
M Lib/platform.py

diff --git a/Lib/platform.py b/Lib/platform.py
index 5958382276e79c..8895177e326a5e 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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"),
diff --git 
a/Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst 
b/Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst
new file mode 100644
index 00000000000000..44821300f6e4e6
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst
@@ -0,0 +1 @@
+The :mod:`platform` module now correctly detects Windows Server 2025.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to