changeset 31509: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 a1e40ceee640
children 0ca00905f769
files mercurial/dispatch.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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