diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-09-21 16:10:21 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-09-21 16:10:21 (GMT) |
commit | 1de99f7afaf6a99bad7736156f57522a1c31e953 (patch) | |
tree | db04cae00ec38a137657c3ca2023760a0fba1197 /Lib/platform.py | |
parent | 47f190a0723ad6a5c08a4fc1d386a3b44fc84ef2 (diff) | |
download | cpython-1de99f7afaf6a99bad7736156f57522a1c31e953.zip cpython-1de99f7afaf6a99bad7736156f57522a1c31e953.tar.gz cpython-1de99f7afaf6a99bad7736156f57522a1c31e953.tar.bz2 |
Issue #26513: Use winver.product_type instead of .product
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 37dfbee..55f2fa8 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -652,7 +652,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) |