]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove imports of 'warnings' that are no longer needed in dummy_thread,
authorBrett Cannon <bcannon@gmail.com>
Sun, 17 Aug 2008 22:10:11 +0000 (22:10 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 17 Aug 2008 22:10:11 +0000 (22:10 +0000)
filecmp, and shelve.

Lib/dummy_thread.py
Lib/filecmp.py
Lib/shelve.py
Misc/NEWS

index 16dcf7e9a2c69de7a5e186f07f424946d3263431..198dc49dba39e6550bc1c1c701009a7a43d2a93d 100644 (file)
@@ -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."""
index 9885765031f35ddf52ad00f23e013250b2405cda..0b7ce16dfece9324ddb344f4e218812aea2b2b4f 100644 (file)
@@ -11,7 +11,6 @@ Functions:
 
 import os
 import stat
-import warnings
 from itertools import ifilter, ifilterfalse, imap, izip
 
 __all__ = ["cmp","dircmp","cmpfiles"]
index 1f78fc17fd3c745b78b15f5a934ec680e38e6561..fb41c844e4fa51760bf087756d02bbf580c12e48 100644 (file)
@@ -69,7 +69,6 @@ except ImportError:
     from StringIO import StringIO
 
 import UserDict
-import warnings
 
 __all__ = ["Shelf","BsdDbShelf","DbfilenameShelf","open"]
 
index 4a9218613471659e517b61809e26b60448c8879c..99414d100361d26b583f3e5ba7d6734bf795e4f9 100644 (file)
--- 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#'.