From: Steve Dower Date: Sat, 12 Mar 2016 16:07:04 +0000 (-0800) Subject: Issue #26513: Fixes platform module detection of Windows Server X-Git-Tag: v2.7.12rc1~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=deb1a90f2c292ee36a485333693f7264396405c1;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 3dbdfe0b7fe3..3cf230315f2b 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -650,7 +650,7 @@ def win32_ver(release='', version='', csd='', ptype=''): csd = 'SP' + csd[13:] # VER_NT_SERVER = 3 - if getattr(winver, 'product_type', None) == 3: + if getattr(winver, 'product', None) == 3: release = (_WIN32_SERVER_RELEASES.get((maj, min)) or _WIN32_SERVER_RELEASES.get((maj, None)) or release) diff --git a/Misc/NEWS b/Misc/NEWS index fe20e061e966..c2b6e27b98e0 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -58,6 +58,8 @@ Core and Builtins Library ------- +- Issue #26513: Fixes platform module detection of Windows Server + - Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by Tamás Bence Gedai.