Mercurial > hg-stable
changeset 36940:dbae581010ea
pycompat: name maplist() and ziplist() for better traceback message
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 13 Mar 2018 21:22:14 +0900 |
parents | 61600b024a70 |
children | ec46b0ee2e3c |
files | mercurial/pycompat.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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