Skip to content
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

Python 3.x incompatible use of print operator #4

Closed
cclauss opened this issue Sep 5, 2017 · 0 comments
Closed

Python 3.x incompatible use of print operator #4

cclauss opened this issue Sep 5, 2017 · 0 comments

Comments

@cclauss
Copy link

cclauss commented Sep 5, 2017

383 instances of Python 3.x incompatible use of print operator

Fixing Python 3.x incompatible use of print operator issues

The 2to3 utility that ships with Python can automatically fix all print statements so that they are compatible with both Python 2 and Python 3.

At the root of your project, run 2to3 -f print . to see all the lines that need to be changed and then run 2to3 -f print -w . to actually write (-w) the changes into the files.

https://docs.python.org/2/library/2to3.html

@cclauss cclauss closed this as completed Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant