[Python-checkins] cpython (merge 3.5 -> default): Issue #26513: Fixes platform module detection of Windows Server

steve.dower python-checkins at python.org
Fri Sep 9 12:47:31 EDT 2016


https://hg.python.org/cpython/rev/67c50dd3fcea
changeset: 103413:67c50dd3fcea
parent: 103411:7e2726acd3f1
parent: 103412:aeb39d4475c5
user: Steve Dower <steve.dower at microsoft.com>
date: Fri Sep 09 09:47:09 2016 -0700
summary:
 Issue #26513: Fixes platform module detection of Windows Server
files:
 Lib/platform.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/platform.py b/Lib/platform.py
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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)
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /