multiline imports not detected as unused

Bug #1455805 reported by Federico Jaramillo
6
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,\
                            UsedTwo, UnusedTwo

Revision history for this message
Phil Frost (bitglue) wrote :

I can not reproduce with the most recently released version, 0.8.1:

$ pyflakes
from almacen.models import UsedOne, UnusedOne,\
                            UsedTwo, UnusedTwo

<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?

Changed in pyflakes:
status: New → Incomplete
Revision history for this message
Federico Jaramillo (jm-federico) wrote :

You are absolutely right, sorry, not this apps fault.

Phil Frost (bitglue)
Changed in pyflakes:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.