diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-09-09 16:46:56 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-09-09 16:46:56 (GMT) |
commit | 41519b2ca84f47adccc3dc309d22bfa17c7ee39b (patch) | |
tree | 246d0cf48e1aff769b72c8e401e774cef74b194b /Lib | |
parent | 6bde454f9e8bb9139f3e9042c527b9ff15373246 (diff) | |
download | cpython-41519b2ca84f47adccc3dc309d22bfa17c7ee39b.zip cpython-41519b2ca84f47adccc3dc309d22bfa17c7ee39b.tar.gz cpython-41519b2ca84f47adccc3dc309d22bfa17c7ee39b.tar.bz2 |
Issue #26513: Fixes platform module detection of Windows Server
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/platform.py | 2 |
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) |