multiline imports not detected as unused
Bug #1455805 reported by
Federico Jaramillo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Multi Line imports with unused modules are not detected as unused when they are on the second line
In this example only "UnusedOne" is detected as unused, but UnusedTwo is not.
from almacen.models import UsedOne, UnusedOne,\
Changed in pyflakes: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
I can not reproduce with the most recently released version, 0.8.1:
$ pyflakes
UsedTwo, UnusedTwo
from almacen.models import UsedOne, UnusedOne,\
<stdin>:1: 'UnusedTwo' imported but unused
<stdin>:1: 'UsedOne' imported but unused
<stdin>:1: 'UsedTwo' imported but unused
<stdin>:1: 'UnusedOne' imported but unused
$ pyflakes --version
0.8.1
Could it be that you are using a very old version, or some intermediate tool is altering the output?