import os + import os.path both unused generates only a single slightly confusing warning
Bug #1153355 reported by
Martin Olsson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Wishlist
|
John Vandenberg |
Bug Description
Consider this Python code:
import os
import os.path
import re
re.search("a", "abd")
...for this code pyflakes will say:
$ pyflakes .
./aaa.py:2: 'os' imported but unused
Instead of if the above I would like it to say:
$ pyflakes .
./aaa.py:1: 'os' imported but unused
./aaa.py:2: 'os.path' imported but unused
Changed in pyflakes: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Bug found in 0.5.0-1ubuntu1