Commit 46265860 authored by Brett Cannon's avatar Brett Cannon

Use functools.reduce() in difflib instead of __builtin__.reduce() to silence

warnings when running under -3.
parent 83e81841
......@@ -34,6 +34,7 @@ __all__ = ['get_close_matches', 'ndiff', 'restore', 'SequenceMatcher',
import heapq
from collections import namedtuple as _namedtuple
from functools import reduce
Match = _namedtuple('Match', 'a b size')
......
......@@ -60,11 +60,11 @@ Library
- 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment