##// END OF EJS Templates
pycompat: add maplist alias for old map behavior
Augie Fackler -
r31501:a1e40cee default
parent child Browse files
Show More
@@ -57,6 +57,7 b' if ispy3:'
57 if sysexecutable:
57 if sysexecutable:
58 sysexecutable = os.fsencode(sysexecutable)
58 sysexecutable = os.fsencode(sysexecutable)
59 stringio = io.BytesIO
59 stringio = io.BytesIO
60 maplist = lambda *args: list(map(*args))
60
61
61 # TODO: .buffer might not exist if std streams were replaced; we'll need
62 # TODO: .buffer might not exist if std streams were replaced; we'll need
62 # a silly wrapper to make a bytes stream backed by a unicode one.
63 # a silly wrapper to make a bytes stream backed by a unicode one.
@@ -251,6 +252,7 b' else:'
251 sysexecutable = sys.executable
252 sysexecutable = sys.executable
252 shlexsplit = shlex.split
253 shlexsplit = shlex.split
253 stringio = cStringIO.StringIO
254 stringio = cStringIO.StringIO
255 maplist = map
254
256
255 empty = _queue.Empty
257 empty = _queue.Empty
256 queue = _queue.Queue
258 queue = _queue.Queue
General Comments 0
You need to be logged in to leave comments. Login now