mirror of https://github.com/python/cpython
Fix #16176. Properly identify Windows 8 via platform.platform()
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
This commit is contained in:
parent
1e65159b34
commit
c1924ab729
|
@ -673,8 +673,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:
|
||||
|
|
Loading…
Reference in New Issue