commit | 1de99f7afaf6a99bad7736156f57522a1c31e953 | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Wed Sep 21 09:10:21 2016 -0700 |
committer | Steve Dower <steve.dower@microsoft.com> | Wed Sep 21 09:10:21 2016 -0700 |
tree | db04cae00ec38a137657c3ca2023760a0fba1197 | |
parent | 47f190a0723ad6a5c08a4fc1d386a3b44fc84ef2 [diff] [blame] |
Issue #26513: Use winver.product_type instead of .product
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 @@ 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)