changeset: 100501:5564cf3ba523 branch: 3.5 parent: 100498:f03da87a79fa user: Steve Dower date: Sat Mar 12 08:06:23 2016 -0800 files: Lib/platform.py Misc/NEWS description: Issue #26513: Fixes platform module detection of Windows Server diff -r f03da87a79fa -r 5564cf3ba523 Lib/platform.py --- a/Lib/platform.py Sat Mar 12 10:51:16 2016 +0200 +++ b/Lib/platform.py Sat Mar 12 08:06:23 2016 -0800 @@ -588,7 +588,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 f03da87a79fa -r 5564cf3ba523 Misc/NEWS --- a/Misc/NEWS Sat Mar 12 10:51:16 2016 +0200 +++ b/Misc/NEWS Sat Mar 12 08:06:23 2016 -0800 @@ -91,6 +91,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.