Patchwork [4,of,8,py3] dispatch: list()-ify another map()

login
register
mail settings
Submitter Augie Fackler
Date March 19, 2017, 6:11 a.m.
Message ID <028d4db7b85030b42853.1489903895@imladris.local>
Download mbox | patch
Permalink /patch/19442/
State Accepted
Headers show

Comments

Augie Fackler - March 19, 2017, 6:11 a.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1489901313 14400
#      Sun Mar 19 01:28:33 2017 -0400
# Node ID 028d4db7b85030b4285342c0dfd1fc7d4bd7e926
# Parent  6823ee960b6e67f6fb6e91f6266b060deac8e7d0
dispatch: list()-ify another map()

Patch

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -480,7 +480,8 @@  def _parse(ui, args):
         args = aliasargs(entry[0], args)
         defaults = ui.config("defaults", cmd)
         if defaults:
-            args = map(util.expandpath, pycompat.shlexsplit(defaults)) + args
+            args = list(map(
+                util.expandpath, pycompat.shlexsplit(defaults))) + args
         c = list(entry[1])
     else:
         cmd = None