diff options
author | Marc-André Lemburg <mal@egenix.com> | 2004-06-19 17:17:00 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2004-06-19 17:17:00 (GMT) |
commit | cdc7923f6d1c9731d81f299569b1ea72de7eb212 (patch) | |
tree | 13136ad845a819741cfc45962b3098b1b6b694cd /Lib | |
parent | 84601f14a3c265fbfd1dd334f53a49c33988caf6 (diff) | |
download | cpython-cdc7923f6d1c9731d81f299569b1ea72de7eb212.zip cpython-cdc7923f6d1c9731d81f299569b1ea72de7eb212.tar.gz cpython-cdc7923f6d1c9731d81f299569b1ea72de7eb212.tar.bz2 |
Added normalization for Windows system name. Closes SF #945665.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/platform.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index d984402..372fe92 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -28,9 +28,10 @@ # Betancourt, Randall Hopper, Karl Putland, John Farrell, Greg # Andruk, Just van Rossum, Thomas Heller, Mark R. Levinson, Mark # Hammond, Bill Tutt, Hans Nowak, Uwe Zessin (OpenVMS support), -# Colin Kong, Trent Mick +# Colin Kong, Trent Mick, Guido van Rossum # # History: +# 1.0.3 - added normalization of Windows system name # 1.0.2 - added more Windows support # 1.0.1 - reformatted to make doc.py happy # 1.0.0 - reformatted a bit and checked into Python CVS @@ -957,6 +958,10 @@ def uname(): # platforms if use_syscmd_ver: system,release,version = _syscmd_ver(system) + # Normalize system to what win32_ver() normally returns + # (_syscmd_ver() tends to return the vendor name as well) + if system == 'Microsoft Windows': + system = 'Windows' # In case we still don't know anything useful, we'll try to # help ourselves |