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 Python3 print() syntax instead of Python2 print in README #120

Closed
wants to merge 2 commits into from

Conversation

ulikoehler
Copy link

README.md and README.rst still use the old Python2

print "x"

syntax which causes error when copy & pasting the code into Python3.

This PR changes the print syntax in README to use

print("x")

Note that this syntax is fully compatible with recent versions of Python2 as well as all versions of Python3.

@mahtin
Copy link
Collaborator

mahtin commented Aug 2, 2021

Oops. You're right. The code was updated quite some time ago; however, the README wasn't. I'll get this merged soon. Thank you.

README.md Outdated
print zones.length()
print json.dumps(zones, indent=4, sort_keys=True)

zones.length()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems the print method got dropped for this line?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, must have missed this. Thanks ! Will fix ASAP

README.md Outdated Show resolved Hide resolved
Co-authored-by: Tom Paine <github@aioue.net>
@mahtin
Copy link
Collaborator

mahtin commented Mar 30, 2022

I pushed a new README which makes this a damn hard to merge - but it does fix the README print's. Thank you for pointing this out - sorry I didn't deal with it until too late to merge (it was an issue with .rst file from Makefile).

@mahtin mahtin closed this Mar 30, 2022
mahtin added a commit that referenced this pull request Mar 30, 2022
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

4 participants