dispatch: use pycompat.maplist() instead of map() to get a list
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 26 Mar 2017 20:49:18 +0530
changeset 31629 2632df096fc0
parent 31628 e86eb75e74ce
child 31630 451c980a8b57
dispatch: use pycompat.maplist() instead of map() to get a list
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Sat Mar 25 13:29:23 2017 -0400
+++ b/mercurial/dispatch.py	Sun Mar 26 20:49:18 2017 +0530
@@ -402,7 +402,7 @@
 
     @property
     def args(self):
-        args = map(util.expandpath, self.givenargs)
+        args = pycompat.maplist(util.expandpath, self.givenargs)
         return aliasargs(self.fn, args)
 
     def __getattr__(self, name):