diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-03-12 16:07:04 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-03-12 16:07:04 (GMT) |
commit | deb1a90f2c292ee36a485333693f7264396405c1 (patch) | |
tree | e33cd7ab97989864f85877d333b2f97ea1226cdf /Lib/platform.py | |
parent | 5c2cb824f4e9ec02af2424af09c9f692f548aed5 (diff) | |
download | cpython-deb1a90f2c292ee36a485333693f7264396405c1.zip cpython-deb1a90f2c292ee36a485333693f7264396405c1.tar.gz cpython-deb1a90f2c292ee36a485333693f7264396405c1.tar.bz2 |
Issue #26513: Fixes platform module detection of Windows Server
Diffstat (limited to 'Lib/platform.py')
-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 3dbdfe0..3cf2303 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -650,7 +650,7 @@ def win32_ver(release='', version='', csd='', ptype=''): csd = 'SP' + csd[13:] # VER_NT_SERVER = 3 - if getattr(winver, 'product_type', None) == 3: + if getattr(winver, 'product', None) == 3: release = (_WIN32_SERVER_RELEASES.get((maj, min)) or _WIN32_SERVER_RELEASES.get((maj, None)) or release) |