[Python-checkins] r58183 - python/trunk/Lib/platform.py

sean.reifschneider python-checkins at python.org
Mon Sep 17 22:53:21 CEST 2007


Author: sean.reifschneider
Date: Mon Sep 17 22:53:21 2007
New Revision: 58183

Modified:
   python/trunk/Lib/platform.py
Log:
issue1082: Fixing platform and system for Vista.


Modified: python/trunk/Lib/platform.py
==============================================================================
--- python/trunk/Lib/platform.py	(original)
+++ python/trunk/Lib/platform.py	Mon Sep 17 22:53:21 2007
@@ -1146,6 +1146,12 @@
         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
 


More information about the Python-checkins mailing list