summaryrefslogtreecommitdiffstats
path: root/Lib/difflib.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-09 23:34:11 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-09 23:34:11 (GMT)
commit46265860c26059e05f5aa002f6e298c88bc35928 (patch)
tree261ae8963f77dd44dfe2565683f26350f83058fd /Lib/difflib.py
parent83e818415a591a14677ae6985d3bb0a035cd4c48 (diff)
downloadcpython-46265860c26059e05f5aa002f6e298c88bc35928.zip
cpython-46265860c26059e05f5aa002f6e298c88bc35928.tar.gz
cpython-46265860c26059e05f5aa002f6e298c88bc35928.tar.bz2
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.
Diffstat (limited to 'Lib/difflib.py')
-rw-r--r--Lib/difflib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/difflib.py b/Lib/difflib.py
index 63b42e9..7498e6f 100644
--- a/Lib/difflib.py
+++ b/Lib/difflib.py
@@ -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')