summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWulian <1055917385@qq.com>2024-12-09 12:24:26 (GMT)
committerGitHub <noreply@github.com>2024-12-09 12:24:26 (GMT)
commit5eb7fd4d0fc37b91058086181afebec41e66e5ad (patch)
tree6ad0ac6256d9a4eaf09eb84561ddd93d0c3edc64
parent2041a95e68ebf6d13f867e214ada28affa830669 (diff)
downloadcpython-5eb7fd4d0fc37b91058086181afebec41e66e5ad.zip
cpython-5eb7fd4d0fc37b91058086181afebec41e66e5ad.tar.gz
cpython-5eb7fd4d0fc37b91058086181afebec41e66e5ad.tar.bz2
gh-127732: Add Windows Server 2025 detection to platform module (GH-127733)
-rw-r--r--Lib/platform.py3
-rw-r--r--Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst1
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index 239e660..1f6baed 100644
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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
index 0000000..4482130
--- /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.