summaryrefslogtreecommitdiff
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-09 09:46:56 -0700
committerSteve Dower <steve.dower@microsoft.com>2016-09-09 09:46:56 -0700
commit41519b2ca84f47adccc3dc309d22bfa17c7ee39b (patch)
tree246d0cf48e1aff769b72c8e401e774cef74b194b /Lib/platform.py
parent6bde454f9e8bb9139f3e9042c527b9ff15373246 (diff)
downloadcpython-git-41519b2ca84f47adccc3dc309d22bfa17c7ee39b.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 b8f3ebc7b1..e7eaa32f9a 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)