From: Brett Cannon Date: Sun, 17 Aug 2008 22:10:11 +0000 (+0000) Subject: Remove imports of 'warnings' that are no longer needed in dummy_thread, X-Git-Tag: v2.6b3~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25c9d6aa00a3e3b97c23a7ebab1afb3feb526699;p=thirdparty%2FPython%2Fcpython.git Remove imports of 'warnings' that are no longer needed in dummy_thread, filecmp, and shelve. --- diff --git a/Lib/dummy_thread.py b/Lib/dummy_thread.py index 16dcf7e9a2c6..198dc49dba39 100644 --- a/Lib/dummy_thread.py +++ b/Lib/dummy_thread.py @@ -17,7 +17,6 @@ __all__ = ['error', 'start_new_thread', 'exit', 'get_ident', 'allocate_lock', 'interrupt_main', 'LockType'] import traceback as _traceback -import warnings class error(Exception): """Dummy implementation of thread.error.""" diff --git a/Lib/filecmp.py b/Lib/filecmp.py index 9885765031f3..0b7ce16dfece 100644 --- a/Lib/filecmp.py +++ b/Lib/filecmp.py @@ -11,7 +11,6 @@ Functions: import os import stat -import warnings from itertools import ifilter, ifilterfalse, imap, izip __all__ = ["cmp","dircmp","cmpfiles"] diff --git a/Lib/shelve.py b/Lib/shelve.py index 1f78fc17fd3c..fb41c844e4fa 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -69,7 +69,6 @@ except ImportError: from StringIO import StringIO import UserDict -import warnings __all__ = ["Shelf","BsdDbShelf","DbfilenameShelf","open"] diff --git a/Misc/NEWS b/Misc/NEWS index 4a9218613471..99414d100361 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -48,6 +48,8 @@ Core and Builtins Library ------- +- Remove unneeded imports of 'warnings' from shelve, filecmp, and dummy_thread. + - Issue #3575: Incremental decoder's decode function now takes bytearray by using 's*' instead of 't#'.