# HG changeset patch # User Yuya Nishihara # Date 2018-03-13 12:22:14 # Node ID dbae581010ead7936d433bba1b0dbb8d6c3b6411 # Parent 61600b024a7032994a94dfdc0de13e4649d2cacb 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