diff Lib/difflib.py @ 48205:bc6a3572bc89 legacy-trunk

Use functools.reduce() in difflib instead of __builtin__.reduce() to silence warnings when running under -3.
author Brett Cannon <bcannon@gmail.com>
date Sat, 09 Aug 2008 23:34:11 +0000
parents 0af6f0300eaf
children 74c0a78114ae
line wrap: on
line diff
--- a/Lib/difflib.py	Sat Aug 09 23:30:55 2008 +0000
+++ b/Lib/difflib.py	Sat Aug 09 23:34:11 2008 +0000
@@ -34,6 +34,7 @@
 
 import heapq
 from collections import namedtuple as _namedtuple
+from functools import reduce
 
 Match = _namedtuple('Match', 'a b size')