]> granicus.if.org Git - python/commitdiff
issue1082: Fixing platform and system for Vista.
authorSean Reifscheider <jafo@tummy.com>
Mon, 17 Sep 2007 20:53:21 +0000 (20:53 +0000)
committerSean Reifscheider <jafo@tummy.com>
Mon, 17 Sep 2007 20:53:21 +0000 (20:53 +0000)
Lib/platform.py

index af8acfaaaa9a5a54419dabfefb1555f28480ee34..a860bf838397dacc5700194a51b1210bb35c95c2 100755 (executable)
@@ -1146,6 +1146,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