(original) (raw)

changeset: 103413:67c50dd3fcea parent: 103411:7e2726acd3f1 parent: 103412:aeb39d4475c5 user: Steve Dower steve.dower@microsoft.com date: Fri Sep 09 09:47:09 2016 -0700 files: Lib/platform.py description: Issue #26513: Fixes platform module detection of Windows Server diff -r 7e2726acd3f1 -r 67c50dd3fcea Lib/platform.py --- a/Lib/platform.py Fri Sep 09 09:40:06 2016 -0700 +++ b/Lib/platform.py Fri Sep 09 09:47:09 2016 -0700 @@ -585,7 +585,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) /steve.dower@microsoft.com