changeset 35149:e6487522ef92

py3: use pycompat.maplist() instead of map() Differential Revision: https://phab.mercurial-scm.org/D1558
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 29 Nov 2017 08:40:58 +0530
parents d2eff9d4db3f
children 08b8b56bd2e8
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Thu Nov 30 16:30:43 2017 +0800
+++ b/mercurial/dispatch.py	Wed Nov 29 08:40:58 2017 +0530
@@ -913,7 +913,7 @@
                     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