-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Python build scripts to use the print function #639
Update Python build scripts to use the print function #639
Conversation
@modocache Two differences:
|
Ah, gotcha. Well, all the changes look good to me!! Looks like you have a merge conflict, though. |
In Python 3, 'print' was changed from a statement to a function. Using the __future__ module allows scripts to use print function whether running with Python 2.6+ or Python 3.x. This commit changes as many instances of print as I could find to use the print function and the __future__ module.
Rebased; merged conflicts fixed. |
LGTM, tested on Ubuntu 14.04 and OS X. |
Update Python build scripts to use the print function
@alexwlchan This is what I've used to find all Python files in the repo:
Nice work cleaning up BTW! :-) |
[pull] swiftwasm from master
…ccache Support using sccache when building the Swift toolchain for a stress tester run
In Python 3, 'print' was changed from a statement to a function. Using
the future module allows scripts to use print function whether
running with Python 2.6+ or Python 3.x. This commit changes as many
instances of print as I could find to use the print function and the
future module.
This is part of ongoing work to get the Python scripts running under
both Python 2 and 3; see PR #90.