]> granicus.if.org Git - python/commitdiff
Issue #26513: Fixes platform module detection of Windows Server
authorSteve Dower <steve.dower@microsoft.com>
Sat, 12 Mar 2016 16:06:23 +0000 (08:06 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 12 Mar 2016 16:06:23 +0000 (08:06 -0800)
Lib/platform.py
Misc/NEWS

index f3d2c423875a53c024dd00759da2f69097be8467..042d39a50f64a7b28f4bbed0e08c4fe3b9f47b1a 100755 (executable)
@@ -588,7 +588,7 @@ def win32_ver(release='', version='', csd='', ptype=''):
                 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)
index b5c34be6a1d45503a09fa6ac53bc89e6aaf1c6a4..f57aab19755230ebbf483ddb0932b5235d452640 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -91,6 +91,8 @@ Core and Builtins
 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.