zhuowei / MarzipanTool

Tools for running iOSMac apps on macOS 10.14 Beta
https://worthdoingbadly.com/iosmac/
MIT License
286 stars 12 forks source link

Define xrange() for Pyhton 3 #2

Closed cclauss closed 4 years ago

cclauss commented 6 years ago

xrange() is called on line 36 but it was removed in Python 3 in favor of range().

zhuowei commented 6 years ago

This is intended to run on macOS's included Python 2, in case someone didn't install any other version of Python - if you're getting this issue, I can update my scripts to explicit specify python2.

cclauss commented 6 years ago

At some point real soon now, Apple will release an OSX update that upgrades the builtin Python from 2.7 to 3.7 and this script should be ready for that change. Most Linux distros have already made this change and Apple will need to follow suit. This PR does not break Python 2 compatibility but it does help with Python 3 compatibility.