(original) (raw)
changeset: 103997:03f2c8fc24ea branch: 2.7 parent: 103967:1219f3ad6103 user: Steve Dower steve.dower@microsoft.com date: Wed Sep 21 09:10:21 2016 -0700 files: Lib/platform.py description: Issue #26513: Use winver.product_type instead of .product diff -r 1219f3ad6103 -r 03f2c8fc24ea Lib/platform.py --- a/Lib/platform.py Tue Sep 20 14:58:38 2016 -0400 +++ b/Lib/platform.py Wed Sep 21 09:10:21 2016 -0700 @@ -652,7 +652,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