Closed
Description
The dictionary fixer will automatically wrap lots of dictionary iterators with list(...)
where it's not really needed, like for
loops. This clutters the code and makes the conversion diffs have more "static" IMO.
So, I've been running modernize without libmodernize.fixes.fix_dict_six
. Unfortunately, that means I have to manually go through and update things like the conversion of mydict.iteritems()
to use the six
version.
It would be really helpful IMO to break out the dictionary fixer into one or more fixers so more granularity can be applied when choosing which dictionary fixes someone would want to apply.