summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-09 16:47:09 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-09 16:47:09 (GMT)
commit7bcf7931fc5b2f1593fda052eec2679c49997877 (patch)
tree3b59fda78323c05904262e7b5b703b6f7f2927a6 /Lib
parentf333fd82a23036ad60a2706e3012c85f06bc04db (diff)
parent41519b2ca84f47adccc3dc309d22bfa17c7ee39b (diff)
downloadcpython-7bcf7931fc5b2f1593fda052eec2679c49997877.zip
cpython-7bcf7931fc5b2f1593fda052eec2679c49997877.tar.gz
cpython-7bcf7931fc5b2f1593fda052eec2679c49997877.tar.bz2
Issue #26513: Fixes platform module detection of Windows Server
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index 9f7b59f..ee315fa 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -585,7 +585,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)