]> granicus.if.org Git - python/commitdiff
Issue #26513: Fixes platform module detection of Windows Server
authorSteve Dower <steve.dower@microsoft.com>
Fri, 9 Sep 2016 16:46:56 +0000 (09:46 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Fri, 9 Sep 2016 16:46:56 +0000 (09:46 -0700)
Lib/platform.py

index b8f3ebc7b1e234a6bcb62114c3aa043e0a7456dc..e7eaa32f9ac6941c9a5a3022d9c7f4f464823363 100755 (executable)
@@ -586,7 +586,7 @@ def win32_ver(release='', version='', csd='', ptype=''):
                 csd = 'SP' + csd[13:]
 
     # VER_NT_SERVER = 3
-    if getattr(winver, 'product', None) == 3:
+    if getattr(winver, 'product_type', None) == 3:
         release = (_WIN32_SERVER_RELEASES.get((maj, min)) or
                    _WIN32_SERVER_RELEASES.get((maj, None)) or
                    release)