[Python-checkins] r65787 - in python/trunk: Lib/dummy_thread.py Lib/filecmp.py Lib/shelve.py Misc/NEWS
brett.cannon
python-checkins at python.org
Mon Aug 18 00:10:11 CEST 2008
Author: brett.cannon
Date: Mon Aug 18 00:10:11 2008
New Revision: 65787
Log:
Remove imports of 'warnings' that are no longer needed in dummy_thread,
filecmp, and shelve.
Modified:
python/trunk/Lib/dummy_thread.py
python/trunk/Lib/filecmp.py
python/trunk/Lib/shelve.py
python/trunk/Misc/NEWS
Modified: python/trunk/Lib/dummy_thread.py
==============================================================================
--- python/trunk/Lib/dummy_thread.py (original)
+++ python/trunk/Lib/dummy_thread.py Mon Aug 18 00:10:11 2008
@@ -17,7 +17,6 @@
'interrupt_main', 'LockType']
import traceback as _traceback
-import warnings
class error(Exception):
"""Dummy implementation of thread.error."""
Modified: python/trunk/Lib/filecmp.py
==============================================================================
--- python/trunk/Lib/filecmp.py (original)
+++ python/trunk/Lib/filecmp.py Mon Aug 18 00:10:11 2008
@@ -11,7 +11,6 @@
import os
import stat
-import warnings
from itertools import ifilter, ifilterfalse, imap, izip
__all__ = ["cmp","dircmp","cmpfiles"]
Modified: python/trunk/Lib/shelve.py
==============================================================================
--- python/trunk/Lib/shelve.py (original)
+++ python/trunk/Lib/shelve.py Mon Aug 18 00:10:11 2008
@@ -69,7 +69,6 @@
from StringIO import StringIO
import UserDict
-import warnings
__all__ = ["Shelf","BsdDbShelf","DbfilenameShelf","open"]
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Mon Aug 18 00:10:11 2008
@@ -48,6 +48,8 @@
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#'.
More information about the Python-checkins
mailing list