diff Lib/test/seq_tests.py @ 45735:7adaab64eb72

Issues 2186 and 2187. Move map() from itertools to builtins.
author Raymond Hettinger <python@rcn.com>
date Thu, 13 Mar 2008 01:26:19 +0000
parents 7dd2c1746267
children 740b5808c57a
line wrap: on
line diff
--- a/Lib/test/seq_tests.py	Thu Mar 13 00:19:26 2008 +0000
+++ b/Lib/test/seq_tests.py	Thu Mar 13 01:26:19 2008 +0000
@@ -79,10 +79,10 @@
     def __next__(self):
         raise StopIteration
 
-from itertools import chain, imap
+from itertools import chain, map
 def itermulti(seqn):
     'Test multiple tiers of iterators'
-    return chain(imap(lambda x:x, iterfunc(IterGen(Sequence(seqn)))))
+    return chain(map(lambda x:x, iterfunc(IterGen(Sequence(seqn)))))
 
 class CommonTest(unittest.TestCase):
     # The type to be tested