Erroneous report of redefined symbol

Bug #1659273 reported by Lele Gaifax
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pyflakes
New
Undecided
Unassigned

Bug Description

For the following snippet

from bar import bar

def foo():
    pass

class X():
    def foo(self):
        pass

    def bar(self):
        pass

pyflakes reports the following errors:

pp.py:1: 'bar.bar' imported but unused
pp.py:10: redefinition of unused 'bar' from line 1

Note that only imported symbols trigger the problem.

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.