summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/filecmp.py4
-rw-r--r--Lib/test/test_itertools.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/Lib/filecmp.py b/Lib/filecmp.py
index 12ba3ef..14e1eb4 100644
--- a/Lib/filecmp.py
+++ b/Lib/filecmp.py
@@ -12,7 +12,7 @@ Functions:
import os
import stat
import warnings
-from itertools import ifilter, ifilterfalse, imap, izip
+from itertools import ifilterfalse, imap, izip
__all__ = ["cmp","dircmp","cmpfiles"]
@@ -132,7 +132,7 @@ class dircmp:
def phase1(self): # Compute common names
a = dict(izip(imap(os.path.normcase, self.left_list), self.left_list))
b = dict(izip(imap(os.path.normcase, self.right_list), self.right_list))
- self.common = list(map(a.__getitem__, ifilter(b.__contains__, a)))
+ self.common = list(map(a.__getitem__, filter(b.__contains__, a)))
self.left_only = list(map(a.__getitem__, ifilterfalse(b.__contains__, a)))
self.right_only = list(map(b.__getitem__, ifilterfalse(a.__contains__, b)))
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 4e0902b..13dc1f9 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -8,6 +8,7 @@ import random
from functools import reduce
maxsize = test_support.MAX_Py_ssize_t
minsize = -maxsize-1
+ifilter = filter
def lzip(*args):
return list(zip(*args))