diff options
author | Raymond Hettinger <python@rcn.com> | 2008-03-13 01:26:19 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-03-13 01:26:19 (GMT) |
commit | a6c6037f882573c9965e4fac74765357e42148e4 (patch) | |
tree | b35d3490d3d547e3bd86f11e3ad761b2c6445f6b /Lib/test/seq_tests.py | |
parent | 17301e9fab311badbbe26a1efcb2decf637b324a (diff) | |
download | cpython-a6c6037f882573c9965e4fac74765357e42148e4.zip cpython-a6c6037f882573c9965e4fac74765357e42148e4.tar.gz cpython-a6c6037f882573c9965e4fac74765357e42148e4.tar.bz2 |
Issues 2186 and 2187. Move map() from itertools to builtins.
Diffstat (limited to 'Lib/test/seq_tests.py')
-rw-r--r-- | Lib/test/seq_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/seq_tests.py b/Lib/test/seq_tests.py index a3815e2..dfa18c5 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 |