[Python-checkins] cpython (merge 3.2 -> 3.3): Merge 3.2

brian.curtin python-checkins at python.org
Thu Oct 11 23:13:07 CEST 2012


http://hg.python.org/cpython/rev/f1c1b59d8181
changeset:   79669:f1c1b59d8181
branch:      3.3
parent:      79661:6dcd68079b7e
parent:      79668:8245333db1e5
user:        Brian Curtin <brian at python.org>
date:        Thu Oct 11 16:11:37 2012 -0500
summary:
  Merge 3.2

files:
  Lib/platform.py |  7 ++++++-
  Misc/NEWS       |  2 ++
  2 files changed, 8 insertions(+), 1 deletions(-)


diff --git a/Lib/platform.py b/Lib/platform.py
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -595,8 +595,13 @@
                     release = '7'
                 else:
                     release = '2008ServerR2'
+            elif min == 2:
+                if product_type == VER_NT_WORKSTATION:
+                    release = '8'
+                else:
+                    release = '2012Server'
             else:
-                release = 'post2008Server'
+                release = 'post2012Server'
 
     else:
         if not release:
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -41,6 +41,8 @@
 Library
 -------
 
+- Issue #16176: Properly identify Windows 8 via platform.platform()
+
 - Issue #16114: The subprocess module no longer provides a misleading error
   message stating that args[0] did not exist when either the cwd or executable
   keyword arguments specified a path that did not exist.

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


More information about the Python-checkins mailing list