From: Ronald Oussoren Date: Tue, 3 Aug 2010 07:42:42 +0000 (+0000) Subject: Fix for issue 9455: platform.mac_ver() broken on OSX/ppc X-Git-Tag: v3.2a2~497 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcd77016b31ea9fb5311695f5ca82cf6c235da87;p=thirdparty%2FPython%2Fcpython.git Fix for issue 9455: platform.mac_ver() broken on OSX/ppc --- diff --git a/Lib/platform.py b/Lib/platform.py index f856a43c046c..8051041679be 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -777,7 +777,7 @@ def _mac_ver_xml(): release = pl['ProductVersion'] versioninfo=('', '', '') machine = os.uname()[4] - if machine == 'ppc': + if machine in ('ppc', 'Power Macintosh'): # for compatibility with the gestalt based code machine = 'PowerPC'