Patchwork [1,of,6,py3] dispatch: use pycompat.maplist() instead of map() to get a list

login
register
mail settings
Submitter Pulkit Goyal
Date March 26, 2017, 3:46 p.m.
Message ID <2632df096fc0ac758238.1490543200@pulkit-goyal>
Download mbox | patch
Permalink /patch/19688/
State Accepted
Headers show

Comments

Pulkit Goyal - March 26, 2017, 3:46 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1490541558 -19800
#      Sun Mar 26 20:49:18 2017 +0530
# Node ID 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2
# Parent  e86eb75e74ce1b0803c26d86a229b9b711f6d76a
dispatch: use pycompat.maplist() instead of map() to get a list

Patch

diff -r e86eb75e74ce -r 2632df096fc0 mercurial/dispatch.py
--- 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):