Issue #26513: Fixes platform module detection of Windows Server
diff --git a/Lib/platform.py b/Lib/platform.py
index 3dbdfe0..3cf2303 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -650,7 +650,7 @@
csd = 'SP' + csd[13:]
# VER_NT_SERVER = 3
- if getattr(winver, 'product_type', None) == 3:
+ if getattr(winver, 'product', None) == 3:
release = (_WIN32_SERVER_RELEASES.get((maj, min)) or
_WIN32_SERVER_RELEASES.get((maj, None)) or
release)
diff --git a/Misc/NEWS b/Misc/NEWS
index fe20e06..c2b6e27 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -58,6 +58,8 @@
Library
-------
+- Issue #26513: Fixes platform module detection of Windows Server
+
- Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
Tamás Bence Gedai.