From: Steve Dower Date: Wed, 21 Sep 2016 16:10:21 +0000 (-0700) Subject: Issue #26513: Use winver.product_type instead of .product X-Git-Tag: v2.7.13rc1~116^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1de99f7afaf6a99bad7736156f57522a1c31e953;p=python Issue #26513: Use winver.product_type instead of .product --- diff --git a/Lib/platform.py b/Lib/platform.py index 37dfbeea92..55f2fa8995 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)