-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT Run pyupgrade following Python2 deprecation #12997
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
Conversation
@@ -90,7 +90,7 @@ | |||
|
|||
score_difference = non_nested_scores - nested_scores | |||
|
|||
print("Average difference of {0:6f} with std. dev. of {1:6f}." | |||
print("Average difference of {:6f} with std. dev. of {:6f}." |
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.
Is this intentional? Not that I actually care ;)
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.
I have not bothered reverting a few such changes, as long as there are no 500 lines of those, I'm hoping it wouldn't matter much.
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.
fine with me.
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.
Looks like you went back on the string replacement with numbers? But I don't really have an opinion. LGTM
Maybe merge #8022 first ;) |
Thanks for the review!
Sure, let's try to. |
Continues #12948
Changes are similar to what was done in #12639 and #12812
A few more maintenance changes following dropping Python 2 support. See the parent PR for more context. This is a significantly shortened version to 220 lines diff from 700 originally, but there may still be a few cosmetic changes that I missed.