Skip to content

Commit fcd7701

Browse files
Fix for issue 9455: platform.mac_ver() broken on OSX/ppc
1 parent 64b02de commit fcd7701

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def _mac_ver_xml():
777777
release = pl['ProductVersion']
778778
versioninfo=('', '', '')
779779
machine = os.uname()[4]
780-
if machine == 'ppc':
780+
if machine in ('ppc', 'Power Macintosh'):
781781
# for compatibility with the gestalt based code
782782
machine = 'PowerPC'
783783

0 commit comments

Comments
 (0)