pycompat: name maplist() and ziplist() for better traceback message
authorYuya Nishihara <yuya@tcha.org>
Tue, 13 Mar 2018 21:22:14 +0900
changeset 36934 dbae581010ea
parent 36933 61600b024a70
child 36935 ec46b0ee2e3c
pycompat: name maplist() and ziplist() for better traceback message
mercurial/pycompat.py
--- a/mercurial/pycompat.py	Sun Mar 04 09:07:06 2018 -0800
+++ b/mercurial/pycompat.py	Tue Mar 13 21:22:14 2018 +0900
@@ -65,8 +65,13 @@
     if sysexecutable:
         sysexecutable = os.fsencode(sysexecutable)
     stringio = io.BytesIO
-    maplist = lambda *args: list(map(*args))
-    ziplist = lambda *args: list(zip(*args))
+
+    def maplist(*args):
+        return list(map(*args))
+
+    def ziplist(*args):
+        return list(zip(*args))
+
     rawinput = input
     getargspec = inspect.getfullargspec