From: Sean Reifscheider Date: Mon, 17 Sep 2007 20:53:21 +0000 (+0000) Subject: issue1082: Fixing platform and system for Vista. X-Git-Tag: v2.6a1~1277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f09597c1fdbeefb4cc5233f3fb607d117f81040b;p=python issue1082: Fixing platform and system for Vista. --- diff --git a/Lib/platform.py b/Lib/platform.py index af8acfaaaa..a860bf8383 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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