Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

breaks Syntax #36

@erwanp

Description

@erwanp

Running python-modernize -w [myfile] changed this:

if sys.version_info[0] == 2:
    from itertools import ifilterfalse as filterfalse
else:
    from itertools import filterfalse

to this:

from six.moves import filterfalse
if sys.version_info[0] == 2:
    
else:
    from itertools import filterfalse

Which is a SyntaxError. There should at least be a pass here.

Version:

modernize (0.6.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions