import fu; del fu complains about RedefinedWhileUnused
Bug #1162161 reported by
Florent
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Wishlist
|
Florent |
Bug Description
This case where we import a module for its side-effects gives a warning.
import fu
del fu
or the one of bug 1162031
import selenium as se
import selenium.webdriver
del selenium
se.webdriver.
Note that this case is covered in the test suite, so it might be intentional:
http://
Related branches
lp:~pyflakes-dev/pyflakes/0.6-del-import
- Pyflakes Dev: Pending requested
-
Diff: 80 lines (+16/-6) (has conflicts)3 files modifiedNEWS.txt (+5/-0)
pyflakes/checker.py (+10/-5)
pyflakes/test/test_imports.py (+1/-1)
Changed in pyflakes: | |
assignee: | nobody → Florent (florent.x) |
importance: | Undecided → Wishlist |
status: | New → In Progress |
Changed in pyflakes: | |
status: | In Progress → Fix Committed |
milestone: | none → 0.7 |
Changed in pyflakes: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
See merge-proposal here: https:/ /github. com/pyflakes/ pyflakes/ pull/4
(unfortunately the mirroring GitHub --> Pyflakes is broken)