I'm going to assume pylint or pyflakes would throw too many warnings on the
stdlib, but would it be worth someone's time to write a simple unused
import checker to run over the stdlib on occasion? I bet even one that did
nothing more than a regex search for matched import statements would be
good enough.

On Fri, Feb 3, 2012 at 19:09, benjamin.peterson
<python-check...@python.org>wrote:

> http://hg.python.org/cpython/rev/9eb5fec8674b
> changeset:   74749:9eb5fec8674b
> branch:      3.2
> parent:      74746:5eb47e1732a0
> user:        Benjamin Peterson <benja...@python.org>
> date:        Fri Feb 03 19:07:30 2012 -0500
> summary:
>  remove unused import
>
> files:
>  Lib/threading.py |  1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
>
> diff --git a/Lib/threading.py b/Lib/threading.py
> --- a/Lib/threading.py
> +++ b/Lib/threading.py
> @@ -5,7 +5,6 @@
>
>  from time import time as _time, sleep as _sleep
>  from traceback import format_exc as _format_exc
> -from collections import deque
>  from _weakrefset import WeakSet
>
>  # Note regarding PEP 8 compliant names
>
> --
> Repository URL: http://hg.python.org/cpython
>
> _______________________________________________
> Python-checkins mailing list
> python-check...@python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
>
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to