From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:42:37 +0000 (+0100) Subject: gh-127732: Add Windows Server 2025 detection to platform module (GH-127733) X-Git-Tag: v3.12.9~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa935225a4a7fe331f34d083ff1743329c28f95c;p=thirdparty%2FPython%2Fcpython.git gh-127732: Add Windows Server 2025 detection to platform module (GH-127733) (cherry picked from commit 5eb7fd4d0fc37b91058086181afebec41e66e5ad) Co-authored-by: Wulian <1055917385@qq.com> --- diff --git a/Lib/platform.py b/Lib/platform.py index c5b604803691..b86e6834911d 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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 index 000000000000..44821300f6e4 --- /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.