From: Sean Reifscheider Date: Mon, 17 Sep 2007 20:58:46 +0000 (+0000) Subject: issue1082: Fixing system and platform names for Vista. X-Git-Tag: v2.5.2c1~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8dd31aa2ed9d541992c7851f12ea8b3394357fa;p=python issue1082: Fixing system and platform names for Vista. --- diff --git a/Lib/platform.py b/Lib/platform.py index 288bc95619..2dcf5e1321 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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