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

Use print() function in both Python 2 and Python 3 #1

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Jan 14, 2019

Legacy print statements are syntax errors in Python 3 but print() function works as expected in both Python 2 and Python 3.

Also, `s0` --> repr(s0) because backticks were removed in Python 3.

Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3.
@krocki
Copy link
Owner

krocki commented Jan 14, 2019

Thank you

@krocki krocki merged commit a828fe5 into krocki:master Jan 14, 2019
@cclauss cclauss deleted the modernize-Python-2-codes branch January 14, 2019 21:45
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

Successfully merging this pull request may close these issues.

None yet

2 participants