Automatically organize module imports

Alexandre Badez alexandre.badez at gmail.com
Tue Oct 16 04:08:26 EDT 2007


On Oct 16, 8:52 am, Thomas Wittek <m... at gedankenkonstrukt.de> wrote:
> Jean-Paul Calderone:
>
> > On Mon, 15 Oct 2007 20:52:11 +0200, Thomas Wittek
> > <m... at gedankenkonstrukt.de> wrote:
> >> Is there a tool that can organize my import section?
>
> > Pyflakes will tell you which imports aren't being used (among other
> > things).  I don't know if an existing tool which will automatically
> > rewrite your source, though.
>
> As Python itself complains about missing imports Pyflakes + Python
> should be a good team in cleaning up my imports.
> I'll give it a try. Thank you!
>
> --
> Thomas Wittek
> Web:http://gedankenkonstrukt.de/
> Jabber: streawkc... at jabber.i-pobox.net
> GPG: 0xF534E231

Hye,

If you're using Eclipse + PyDev, I strongly recommend you to give a
try to PyLint ("http://www.logilab.org/857").
It reintegrate quiet well with PyDev and Eclipse, and do as much as
Pyflakes (as far as I know)




More information about the Python-list mailing list