Movatterモバイル変換
[0]ホーム
[Python-Dev] [Python-checkins] cpython (3.2): remove unusedimport
Brett Cannonbrett 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 thestdlib, but would it be worth someone's time to write a simple unusedimport checker to run over the stdlib on occasion? I bet even one that didnothing more than a regex search for matched import statements would begood 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 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-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-Devmailing list
[8]ページ先頭