<br><br><div class="gmail_quote">On Sun, Feb 5, 2012 at 19:53, Christian Heimes <span dir="ltr">&lt;<a href="mailto:lists@cheimes.de">lists@cheimes.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Am 06.02.2012 01:39, schrieb Brett Cannon:<br>
<div class="im">&gt; I&#39;m going to assume pylint or pyflakes would throw too many warnings on<br>
&gt; the stdlib, but would it be worth someone&#39;s time to write a simple<br>
&gt; unused import checker to run over the stdlib on occasion? I bet even one<br>
&gt; that did nothing more than a regex search for matched import statements<br>
&gt; would be good enough.<br>
<br>
</div>Zope 3 has an import checker that uses the compiler package and AST tree<br>
to check for unused imports. It seems like a better approach than a<br>
simple regex search.<br>
<br>
<a href="http://svn.zope.org/Zope3/trunk/utilities/importchecker.py?rev=25177&amp;view=auto" target="_blank">http://svn.zope.org/Zope3/trunk/utilities/importchecker.py?rev=25177&amp;view=auto</a><br>
<br>
The importorder tool uses the tokenizer module to order import statements.<br>
<br>
<a href="http://svn.zope.org/Zope3/trunk/utilities/importorder.py?rev=25177&amp;view=auto" target="_blank">http://svn.zope.org/Zope3/trunk/utilities/importorder.py?rev=25177&amp;view=auto</a><br>
<br>
Both are written by Jim Fulton.<br></blockquote><div><br></div><div> Ah, but does it run against Python 3? If so then this is something to suggest on python-mentor for someone to get their feet wet for contributing.</div>

</div>