changeset: 103412:aeb39d4475c5 branch: 3.5 parent: 103405:ff942f8a8f49 user: Steve Dower date: Fri Sep 09 09:46:56 2016 -0700 files: Lib/platform.py description: Issue #26513: Fixes platform module detection of Windows Server diff -r ff942f8a8f49 -r aeb39d4475c5 Lib/platform.py --- a/Lib/platform.py Fri Sep 09 12:14:43 2016 -0400 +++ b/Lib/platform.py Fri Sep 09 09:46:56 2016 -0700 @@ -586,7 +586,7 @@ 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)