]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)
authorWulian <1055917385@qq.com>
Mon, 9 Dec 2024 12:24:26 +0000 (20:24 +0800)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2024 12:24:26 +0000 (12:24 +0000)
Lib/platform.py
Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst [new file with mode: 0644]

index 239e660cd1621d2b552ad5b644a67813c5502b48..1f6baed66d3df9f3eef46a58167f97ed27615ed2 100644 (file)
@@ -353,7 +353,8 @@ _WIN32_CLIENT_RELEASES = [
 ]
 
 _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 (file)
index 0000000..4482130
--- /dev/null
@@ -0,0 +1 @@
+The :mod:`platform` module now correctly detects Windows Server 2025.