##// END OF EJS Templates
py3: introduce pycompat.ziplist as zip is a generator on Python 3...
Pulkit Goyal -
r35406:e66d6e93 default
parent child Browse files
Show More
@@ -63,6 +63,7 b' if ispy3:'
63 sysexecutable = os.fsencode(sysexecutable)
63 sysexecutable = os.fsencode(sysexecutable)
64 stringio = io.BytesIO
64 stringio = io.BytesIO
65 maplist = lambda *args: list(map(*args))
65 maplist = lambda *args: list(map(*args))
66 ziplist = lambda *args: list(zip(*args))
66 rawinput = input
67 rawinput = input
67
68
68 # TODO: .buffer might not exist if std streams were replaced; we'll need
69 # TODO: .buffer might not exist if std streams were replaced; we'll need
@@ -313,6 +314,7 b' else:'
313 shlexsplit = shlex.split
314 shlexsplit = shlex.split
314 stringio = cStringIO.StringIO
315 stringio = cStringIO.StringIO
315 maplist = map
316 maplist = map
317 ziplist = zip
316 rawinput = raw_input
318 rawinput = raw_input
317
319
318 isjython = sysplatform.startswith('java')
320 isjython = sysplatform.startswith('java')
General Comments 0
You need to be logged in to leave comments. Login now