[Python-checkins] cpython (3.5): Issue #26513: Fixes platform module detection of Windows Server
steve.dower
python-checkins at python.org
Fri Sep 9 12:47:23 EDT 2016
https://hg.python.org/cpython/rev/aeb39d4475c5
changeset: 103412:aeb39d4475c5
branch: 3.5
parent: 103405:ff942f8a8f49
user: Steve Dower <steve.dower at microsoft.com>
date: Fri Sep 09 09:46:56 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
@@ -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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list