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

breaks Syntax #36

Open
erwanp opened this issue May 14, 2018 · 1 comment
Open

breaks Syntax #36

erwanp opened this issue May 14, 2018 · 1 comment

Comments

@erwanp
Copy link

erwanp commented May 14, 2018

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)

@graingert
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants