commit | deb1a90f2c292ee36a485333693f7264396405c1 | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Sat Mar 12 08:07:04 2016 -0800 |
committer | Steve Dower <steve.dower@microsoft.com> | Sat Mar 12 08:07:04 2016 -0800 |
tree | e33cd7ab97989864f85877d333b2f97ea1226cdf | |
parent | 5c2cb824f4e9ec02af2424af09c9f692f548aed5 [diff] [blame] |
Issue #26513: Fixes platform module detection of Windows Server
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 @@ 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)