From a6c6037f882573c9965e4fac74765357e42148e4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 13 Mar 2008 01:26:19 +0000 Subject: Issues 2186 and 2187. Move map() from itertools to builtins. --- Lib/test/seq_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/seq_tests.py') diff --git a/Lib/test/seq_tests.py b/Lib/test/seq_tests.py index a3815e216e..dfa18c5558 100644 --- a/Lib/test/seq_tests.py +++ b/Lib/test/seq_tests.py @@ -79,10 +79,10 @@ class IterFuncStop: 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 -- cgit v1.2.1