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/test_heapq.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/test_heapq.py')
-rw-r--r-- | Lib/test/test_heapq.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_heapq.py b/Lib/test/test_heapq.py index 8ae1637..7969d6e 100644 --- a/Lib/test/test_heapq.py +++ b/Lib/test/test_heapq.py @@ -260,10 +260,10 @@ class S: def __next__(self): raise StopIteration -from itertools import chain, imap +from itertools import chain, map def L(seqn): 'Test multiple tiers of iterators' - return chain(imap(lambda x:x, R(Ig(G(seqn))))) + return chain(map(lambda x:x, R(Ig(G(seqn))))) class TestErrorHandling(unittest.TestCase): # only for C implementation |