diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-09 23:34:11 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-09 23:34:11 (GMT) |
commit | 46265860c26059e05f5aa002f6e298c88bc35928 (patch) | |
tree | 261ae8963f77dd44dfe2565683f26350f83058fd /Lib/difflib.py | |
parent | 83e818415a591a14677ae6985d3bb0a035cd4c48 (diff) | |
download | cpython-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.py | 1 |
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') |