changeset: 100502:9db5846f126d branch: 2.7 parent: 100499:4fb167ec3108 user: Steve Dower date: Sat Mar 12 08:07:04 2016 -0800 files: Lib/platform.py Misc/NEWS description: Issue #26513: Fixes platform module detection of Windows Server diff -r 4fb167ec3108 -r 9db5846f126d Lib/platform.py --- a/Lib/platform.py Sat Mar 12 10:51:16 2016 +0200 +++ b/Lib/platform.py Sat Mar 12 08:07:04 2016 -0800 @@ -650,7 +650,7 @@ 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 -r 4fb167ec3108 -r 9db5846f126d Misc/NEWS --- a/Misc/NEWS Sat Mar 12 10:51:16 2016 +0200 +++ b/Misc/NEWS Sat Mar 12 08:07:04 2016 -0800 @@ -58,6 +58,8 @@ 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.