mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.
This commit is contained in:
parent
83e818415a
commit
46265860c2
2 changed files with 6 additions and 5 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue