-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dictionaries: Additions and reorderings
- Loading branch information
Showing
1 changed file
with
131 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2be4c6c
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 think that first example in Fixer caveat is wrong.
If I have file with following content:
Fixer doesn't change it because it recognize usage of keys() in loop where iterator should remains.
But if I have a file with just assignment keys from dict to variable
fixer change it.
Anyway, thanks for a lot of new content.
2be4c6c
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.
Ah, right! I was using an old version of modernize...
2be4c6c
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.
Hm, this is unfortunate -- modernize 0.5 will not fix (or mark) code like:
which is definitely something I've seen before.