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

steve.dower python-checkins at python.org
Sat Mar 12 11:07:58 EST 2016


https://hg.python.org/cpython/rev/5564cf3ba523
changeset: 100501:5564cf3ba523
branch: 3.5
parent: 100498:f03da87a79fa
user: Steve Dower <steve.dower at microsoft.com>
date: Sat Mar 12 08:06:23 2016 -0800
summary:
 Issue #26513: Fixes platform module detection of Windows Server
files:
 Lib/platform.py | 2 +-
 Misc/NEWS | 2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/platform.py b/Lib/platform.py
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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 --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

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