changeset 31629:2632df096fc0

dispatch: use pycompat.maplist() instead of map() to get a list
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 26 Mar 2017 20:49:18 +0530
parents e86eb75e74ce
children 451c980a8b57
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):