From 4ec5b3273690bc22b6eabde6c8188d7707ffa603 Mon Sep 17 00:00:00 2001 From: Wulian233 <1055917385@qq.com> Date: Sun, 8 Dec 2024 08:36:34 +0800 Subject: [PATCH 1/4] Add Windows Server 2025 to `platform.py` detection --- Lib/platform.py | 3 ++- .../Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst diff --git a/Lib/platform.py b/Lib/platform.py index 239e660cd1621d..1f6baed66d3df9 100644 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -353,7 +353,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..2aa32552be3ce5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst @@ -0,0 +1 @@ +Add Windows Server 2025 to `platform.py` detection From 5b72615a0fc379a65782e90c5754ce434583cc6e Mon Sep 17 00:00:00 2001 From: Wulian <1055917385@qq.com> Date: Sun, 8 Dec 2024 08:41:51 +0800 Subject: [PATCH 2/4] Update 2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst --- .../next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index 2aa32552be3ce5..7cfc89e23a8a96 100644 --- 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 @@ -1 +1 @@ -Add Windows Server 2025 to `platform.py` detection +Add Windows Server 2025 to ``platform.py`` detection From 11ce710f3325ae82b36fe8de2947ddad31c0398c Mon Sep 17 00:00:00 2001 From: Wulian <1055917385@qq.com> Date: Sun, 8 Dec 2024 17:11:28 +0800 Subject: [PATCH 3/4] NEWS --- .../next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index 7cfc89e23a8a96..6e262795449095 100644 --- 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 @@ -1 +1 @@ -Add Windows Server 2025 to ``platform.py`` detection +The :mod:`platform` module now correctly detects Windows Server 2025. \ No newline at end of file From 9d88b6f662b3056104b3d66d4270f3ef7bfd4299 Mon Sep 17 00:00:00 2001 From: Wulian <1055917385@qq.com> Date: Sun, 8 Dec 2024 17:15:00 +0800 Subject: [PATCH 4/4] add an empty line to pass lint --- .../next/Library/2024-12-08-08-36-18.gh-issue-127732.UEKxoa.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index 6e262795449095..44821300f6e4e6 100644 --- 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 @@ -1 +1 @@ -The :mod:`platform` module now correctly detects Windows Server 2025. \ No newline at end of file +The :mod:`platform` module now correctly detects Windows Server 2025.