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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f09597c1fdbeefb4cc5233f3fb607d117f81040b;p=thirdparty%2FPython%2Fcpython.git issue1082: Fixing platform and system for Vista. --- diff --git a/Lib/platform.py b/Lib/platform.py index af8acfaaaa9a..a860bf838397 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