import fu; del fu complains about RedefinedWhileUnused

Bug #1162161 reported by Florent
6
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.Firefox("foo")

Note that this case is covered in the test suite, so it might be intentional:
http://bazaar.launchpad.net/~pyflakes-dev/pyflakes/master/view/72/pyflakes/test/test_imports.py#L23

Related branches

Florent (florent.x)
Changed in pyflakes:
assignee: nobody → Florent (florent.x)
importance: Undecided → Wishlist
status: New → In Progress
Revision history for this message
Florent (florent.x) wrote :

See merge-proposal here: https://github.com/pyflakes/pyflakes/pull/4

(unfortunately the mirroring GitHub --> Pyflakes is broken)

Florent (florent.x)
Changed in pyflakes:
status: In Progress → Fix Committed
milestone: none → 0.7
Florent (florent.x)
Changed in pyflakes:
status: Fix Committed → Fix Released
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.