diff mercurial/dispatch.py @ 31502:9916b3d579a9

dispatch: use pycompat.maplist to allow summing with args
author Augie Fackler <augie@google.com>
date Sun, 19 Mar 2017 14:17:07 -0400
parents bc315e669a32
children 2632df096fc0
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sun Mar 19 14:12:38 2017 -0400
+++ b/mercurial/dispatch.py	Sun Mar 19 14:17:07 2017 -0400
@@ -475,7 +475,8 @@
         args = aliasargs(entry[0], args)
         defaults = ui.config("defaults", cmd)
         if defaults:
-            args = map(util.expandpath, pycompat.shlexsplit(defaults)) + args
+            args = pycompat.maplist(
+                util.expandpath, pycompat.shlexsplit(defaults)) + args
         c = list(entry[1])
     else:
         cmd = None