summaryrefslogtreecommitdiff
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2012-10-11 16:07:52 -0500
committerBrian Curtin <brian@python.org>2012-10-11 16:07:52 -0500
commit0b960f5a583afd458d7bd7feb41a527501143b61 (patch)
tree05b1b668a39873e65831af12d530c4bafe2810ed /Lib/platform.py
parentcc32a68216238d72913794cf83fc0eaf54abe0db (diff)
downloadcpython-git-0b960f5a583afd458d7bd7feb41a527501143b61.tar.gz
Fix #16176. Properly identify Windows 8 via platform.platform()
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index eedc11c518..686a045845 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -668,8 +668,13 @@ def win32_ver(release='',version='',csd='',ptype=''):
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: