dispatch: use pycompat.maplist to allow summing with args
authorAugie Fackler <augie@google.com>
Sun, 19 Mar 2017 14:17:07 -0400
changeset 31509 9916b3d579a9
parent 31508 a1e40ceee640
child 31510 0ca00905f769
dispatch: use pycompat.maplist to allow summing with args
mercurial/dispatch.py
--- 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