mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
issue1082: Fixing system and platform names for Vista.
This commit is contained in:
parent
1644e6ebd1
commit
e8dd31aa2e
1 changed files with 6 additions and 0 deletions
|
@ -1027,6 +1027,12 @@ def uname():
|
|||
machine = ''
|
||||
if processor == 'unknown':
|
||||
processor = ''
|
||||
|
||||
# normalize name
|
||||
if system == 'Microsoft' and release == 'Windows':
|
||||
system = 'Windows'
|
||||
release = 'Vista'
|
||||
|
||||
_uname_cache = system,node,release,version,machine,processor
|
||||
return _uname_cache
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue