From 41519b2ca84f47adccc3dc309d22bfa17c7ee39b Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 9 Sep 2016 09:46:56 -0700 Subject: [PATCH] Issue #26513: Fixes platform module detection of Windows Server --- Lib/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py index b8f3ebc7b1e..e7eaa32f9ac 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)