One tool which is handy for quickly linting a python file is pyflakes.
It does simple static analysis but it spots things like unused imports
and undeclared variables. I have it set to run every time I save a
file and its output appears as a tooltip.

e.g.

$ pyflakes example.py
eventwatcher.py:9: 'foo' imported but unused
eventwatcher.py:12: undefined name 'X'

http://pypi.python.org/pypi/pyflakes/0.2.1

mick

On Mon, Jan 26, 2009 at 15:38, [email protected]
<[email protected]> wrote:
>
> Hi,
>
> I'd like to debloat some Django apps by removing unused imports. Can
> anyone recommend a tool for managing imports in Python?
>
> Thanks,
> John
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to