mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
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
cc32a68216
commit
0b960f5a58
2 changed files with 8 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -129,6 +129,8 @@ Core and Builtins
|
|||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue