[Python-Dev] [Python-checkins] cpython (3.2): remove unused import (original) (raw)

Brett Cannon brett at python.org
Mon Feb 6 01:39:55 CET 2012


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-checkins at python.org>wrote:

http://hg.python.org/cpython/rev/9eb5fec8674b changeset: 74749:9eb5fec8674b branch: 3.2 parent: 74746:5eb47e1732a0 user: Benjamin Peterson <benjamin at 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 formatexc as formatexc -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-checkins at python.org http://mail.python.org/mailman/listinfo/python-checkins -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120205/cd3da47f/attachment-0001.html>



More information about the Python-Dev mailing list