-
Notifications
You must be signed in to change notification settings - Fork 180
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
Replace 'counter' function with 'collection.Counter' #814
Conversation
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.
please remove "PR:" from your title and commit message. of course it's a PR because it is
also please remove "all tests pass", we have ci checks in place which will be the judge of that
pyflakes/checker.py
Outdated
@@ -1773,6 +1761,7 @@ def DICT(self, node): | |||
# Complain if there are duplicate keys with different values | |||
# If they have the same value it's not going to cause potentially | |||
# unexpected behaviour so we'll not complain. | |||
counter = collections.Counter |
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.
this should fix the call, this line looks suspicious as written
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.
@asottile Thanks for your guidance. |
@asottile I would rather not change a previous commit message, but feel free to change it if think it's best. |
@sigmavirus24 Thanks, Ian. |
Thanks for helping improve the project, @edreamleo |
@sigmavirus24 You're welcome :-) |
See #813.