Skip to content

Request: break out dictionary fixer into multiple fixers #119

Closed
@rsyring

Description

@rsyring

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions