[Python-checkins] cpython (2.7): Issue #26513: Use winver.product_type instead of .product

steve.dower python-checkins at python.org
Wed Sep 21 12:10:36 EDT 2016


https://hg.python.org/cpython/rev/03f2c8fc24ea
changeset:   103997:03f2c8fc24ea
branch:      2.7
parent:      103967:1219f3ad6103
user:        Steve Dower <steve.dower at microsoft.com>
date:        Wed Sep 21 09:10:21 2016 -0700
summary:
  Issue #26513: Use winver.product_type instead of .product

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
@@ -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)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list