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