summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-21 16:10:21 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-21 16:10:21 (GMT)
commit1de99f7afaf6a99bad7736156f57522a1c31e953 (patch)
treedb04cae00ec38a137657c3ca2023760a0fba1197 /Lib/platform.py
parent47f190a0723ad6a5c08a4fc1d386a3b44fc84ef2 (diff)
downloadcpython-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-xLib/platform.py2
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)