##// 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 57 if sysexecutable:
58 58 sysexecutable = os.fsencode(sysexecutable)
59 59 stringio = io.BytesIO
60 maplist = lambda *args: list(map(*args))
60 61
61 62 # TODO: .buffer might not exist if std streams were replaced; we'll need
62 63 # a silly wrapper to make a bytes stream backed by a unicode one.
@@ -251,6 +252,7 b' else:'
251 252 sysexecutable = sys.executable
252 253 shlexsplit = shlex.split
253 254 stringio = cStringIO.StringIO
255 maplist = map
254 256
255 257 empty = _queue.Empty
256 258 queue = _queue.Queue
General Comments 0
You need to be logged in to leave comments. Login now