Re: [PATCH 1 of 4] pycompat: name maplist() and ziplist() for better traceback message
On Tue, Mar 13, 2018 at 7:25 PM, Yuya Nishiharawrote: > # HG changeset patch > # User Yuya Nishihara > # Date 1520943734 -32400 > # Tue Mar 13 21:22:14 2018 +0900 > # Node ID aa35c6d7caef9ef9f48d0c9c831f9492c1421c45 > # Parent 6aeb076b1321c540db6419fc48c8a3a552fb596b > pycompat: name maplist() and ziplist() for better traceback message Queued the first two patches. Many thanks! ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
[PATCH 1 of 4] pycompat: name maplist() and ziplist() for better traceback message
# HG changeset patch # User Yuya Nishihara# Date 1520943734 -32400 # Tue Mar 13 21:22:14 2018 +0900 # Node ID aa35c6d7caef9ef9f48d0c9c831f9492c1421c45 # Parent 6aeb076b1321c540db6419fc48c8a3a552fb596b pycompat: name maplist() and ziplist() for better traceback message diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py --- a/mercurial/pycompat.py +++ b/mercurial/pycompat.py @@ -65,8 +65,13 @@ if ispy3: 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 ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel