# HG changeset patch # User Augie Fackler # Date 2017-03-19 18:12:38 # Node ID a1e40ceee64052585420b4fb9303e84211f99082 # Parent bc315e669a32b30af374e6c370e269e9950c165b pycompat: add maplist alias for old map behavior diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py --- a/mercurial/pycompat.py +++ b/mercurial/pycompat.py @@ -57,6 +57,7 @@ if ispy3: if sysexecutable: sysexecutable = os.fsencode(sysexecutable) stringio = io.BytesIO + maplist = lambda *args: list(map(*args)) # TODO: .buffer might not exist if std streams were replaced; we'll need # a silly wrapper to make a bytes stream backed by a unicode one. @@ -251,6 +252,7 @@ else: sysexecutable = sys.executable shlexsplit = shlex.split stringio = cStringIO.StringIO + maplist = map empty = _queue.Empty queue = _queue.Queue