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

warnings when running under -3.
This commit is contained in:
Brett Cannon 2008-08-09 23:34:11 +00:00
parent 83e818415a
commit 46265860c2
2 changed files with 6 additions and 5 deletions

View file

@ -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')