]> 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:07:04 +0000 (08:07 -0800)
committerSteve Dower <steve.dower@microsoft.com>
Sat, 12 Mar 2016 16:07:04 +0000 (08:07 -0800)
Lib/platform.py
Misc/NEWS

index 3dbdfe0b7fe32ee7e22264068afae18678ed61fc..3cf230315f2bfd7f929cac15c5cb62479f7b69b1 100755 (executable)
@@ -650,7 +650,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 fe20e061e966584a73c0e3e53a6505b8e1a01136..c2b6e27b98e0266c44cd656346827d026d9363d1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -58,6 +58,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.