[Python-checkins] r65617 - in python/trunk: Lib/difflib.py Misc/NEWS

brett.cannon python-checkins at python.org
Sun Aug 10 01:34:11 CEST 2008


Author: brett.cannon
Date: Sun Aug 10 01:34:11 2008
New Revision: 65617

Log:
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.


Modified:
   python/trunk/Lib/difflib.py
   python/trunk/Misc/NEWS

Modified: python/trunk/Lib/difflib.py
==============================================================================
--- python/trunk/Lib/difflib.py	(original)
+++ python/trunk/Lib/difflib.py	Sun Aug 10 01:34:11 2008
@@ -34,6 +34,7 @@
 
 import heapq
 from collections import namedtuple as _namedtuple
+from functools import reduce
 
 Match = _namedtuple('Match', 'a b size')
 

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sun Aug 10 01:34:11 2008
@@ -60,11 +60,11 @@
 
 - Changed code in the following modules/packages to remove warnings raised
   while running under the ``-3`` flag: aifc, asynchat, asyncore, bdb, bsddb,
-  ConfigParser, cookielib, DocXMLRPCServer, email, filecmp, fileinput, inspect,
-  logging, modulefinder, pdb, pickle, profile, pstats, pydoc, re, rlcompleter,
-  SimpleXMLRPCServer, shelve, socket, subprocess, sqlite3, tarfile, Tkinter,
-  test.test_support, textwrap, threading, tokenize, traceback, urlparse,
-  wsgiref, xml, xmlrpclib.
+  ConfigParser, cookielib, difflib, DocXMLRPCServer, email, filecmp, fileinput,
+  inspect, logging, modulefinder, pdb, pickle, profile, pstats, pydoc, re,
+  rlcompleter, SimpleXMLRPCServer, shelve, socket, subprocess, sqlite3,
+  tarfile, Tkinter, test.test_support, textwrap, threading, tokenize,
+  traceback, urlparse, wsgiref, xml, xmlrpclib.
 
 - Issue #3039: Fix tarfile.TarFileCompat.writestr() which always
   raised an AttributeError.


More information about the Python-checkins mailing list