]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Dec 2024 12:42:37 +0000 (13:42 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2024 12:42:37 +0000 (12:42 +0000)
(cherry picked from commit 5eb7fd4d0fc37b91058086181afebec41e66e5ad)

Co-authored-by: Wulian <1055917385@qq.com>
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 c5b6048036910d5e72f5599b0ae3a011f54571df..b86e6834911d15331e8cb11e3b77b406d1386be3 100755 (executable)
@@ -348,7 +348,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.