[Python-checkins] r58184 - python/branches/release25-maint/Lib/platform.py

sean.reifschneider python-checkins at python.org
Mon Sep 17 22:58:46 CEST 2007


Author: sean.reifschneider
Date: Mon Sep 17 22:58:46 2007
New Revision: 58184
Modified:
 python/branches/release25-maint/Lib/platform.py
Log:
issue1082: Fixing system and platform names for Vista.
Modified: python/branches/release25-maint/Lib/platform.py
==============================================================================
--- python/branches/release25-maint/Lib/platform.py	(original)
+++ python/branches/release25-maint/Lib/platform.py	Mon Sep 17 22:58:46 2007
@@ -1027,6 +1027,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

AltStyle によって変換されたページ (->オリジナル) /