From: Steve Dower Date: Fri, 9 Sep 2016 16:46:56 +0000 (-0700) Subject: Issue #26513: Fixes platform module detection of Windows Server X-Git-Tag: v3.6.0b1~207^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41519b2ca84f47adccc3dc309d22bfa17c7ee39b;p=thirdparty%2FPython%2Fcpython.git Issue #26513: Fixes platform module detection of Windows Server --- diff --git a/Lib/platform.py b/Lib/platform.py index b8f3ebc7b1e2..e7eaa32f9ac6 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -586,7 +586,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)