[Zope3-Users] Utility for removing unneeded import statements
Hermann Himmelbauer
dusty at qwer.tk
Tue Jun 5 06:50:40 EDT 2007
Hi,
During development and especially refactoring, I'm often confronted with
cleaning up import statements.
Missing imports are reported by Python, however, unneeded imports are not. I
don't know if unneded imports are a performance issue, nevertheless it
probably makes sense to clean them up from time to time.
Therefore I wonder if there's some tool that can automatically check if an
import is needed or not. Probably this is easy to write, but perhaps somebody
has already done so?
What would be nice, would also be a tool that crawls through a python package
and also checks any missing imports and reports all of them at once. When I
refactor code, I often have to restart zope3 over and over, only due to
missing import statements.
Best Regards,
Hermann
--
x1 at aon.at
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
More information about the Zope3-users
mailing list