summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-09 16:46:56 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-09 16:46:56 (GMT)
commit41519b2ca84f47adccc3dc309d22bfa17c7ee39b (patch)
tree246d0cf48e1aff769b72c8e401e774cef74b194b
parent6bde454f9e8bb9139f3e9042c527b9ff15373246 (diff)
downloadcpython-41519b2ca84f47adccc3dc309d22bfa17c7ee39b.zip
cpython-41519b2ca84f47adccc3dc309d22bfa17c7ee39b.tar.gz
cpython-41519b2ca84f47adccc3dc309d22bfa17c7ee39b.tar.bz2
Issue #26513: Fixes platform module detection of Windows Server
-rwxr-xr-xLib/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index b8f3ebc..e7eaa32 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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)