# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-11-29 03:10:58 # Node ID e6487522ef924b2c153151a1f6557d8ec9355742 # Parent d2eff9d4db3f024757d2d3cfabfb79fe67636327 py3: use pycompat.maplist() instead of map() Differential Revision: https://phab.mercurial-scm.org/D1558 diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -913,7 +913,7 @@ def _dispatch(req): if not func.optionalrepo: if func.inferrepo and args and not path: # try to infer -R from command args - repos = map(cmdutil.findrepo, args) + repos = pycompat.maplist(cmdutil.findrepo, args) guess = repos[0] if guess and repos.count(guess) == len(repos): req.args = ['--repository', guess] + fullargs