# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-03-26 15:19:18 # Node ID 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2 # Parent e86eb75e74ce1b0803c26d86a229b9b711f6d76a dispatch: use pycompat.maplist() instead of map() to get a list diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -402,7 +402,7 @@ class cmdalias(object): @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):