summaryrefslogtreecommitdiffstats
path: root/Lib/filecmp.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-03-13 01:26:19 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-03-13 01:26:19 (GMT)
commita6c6037f882573c9965e4fac74765357e42148e4 (patch)
treeb35d3490d3d547e3bd86f11e3ad761b2c6445f6b /Lib/filecmp.py
parent17301e9fab311badbbe26a1efcb2decf637b324a (diff)
downloadcpython-a6c6037f882573c9965e4fac74765357e42148e4.zip
cpython-a6c6037f882573c9965e4fac74765357e42148e4.tar.gz
cpython-a6c6037f882573c9965e4fac74765357e42148e4.tar.bz2
Issues 2186 and 2187. Move map() from itertools to builtins.
Diffstat (limited to 'Lib/filecmp.py')
-rw-r--r--Lib/filecmp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/filecmp.py b/Lib/filecmp.py
index 14e1eb4..00fc135 100644
--- a/Lib/filecmp.py
+++ b/Lib/filecmp.py
@@ -12,7 +12,7 @@ Functions:
import os
import stat
import warnings
-from itertools import ifilterfalse, imap, izip
+from itertools import ifilterfalse, izip
__all__ = ["cmp","dircmp","cmpfiles"]
@@ -130,8 +130,8 @@ class dircmp:
self.right_list.sort()
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))
+ a = dict(izip(map(os.path.normcase, self.left_list), self.left_list))
+ b = dict(izip(map(os.path.normcase, self.right_list), self.right_list))
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)))