-
Notifications
You must be signed in to change notification settings - Fork 63
Fixing print statements #50
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
base: master
Are you sure you want to change the base?
Conversation
| def genGraphInfoBetweeness(self, centrality): | ||
| print "\n+++++++++++ %s ++++++++++++" % (centrality) | ||
| print "Calculating centrality values..." | ||
| print ("\n+++++++++++ %s ++++++++++++" % (centrality)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems you're converting the code to Python 3, better to use the Python3 recommended formatting style with {}.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, but if I may ask, can you clarify what you mean by using a formatting style with { }? Do you mean for me to further format the print statements using { }? Or the code in general? Also, if you are looking to transform all the code in the application into Python 3, may I suggest using "2to3", a Python tool for converting such code?
gnomezgrave
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems you're converting the code to Python 3, better to use the Python3 recommended formatting style with {}.
In reference to issue 47, brackets were added to print statements in order to make files compatible with Python 3 forward, where print statements are now functions.