comparison mercurial/dispatch.py @ 31629:2632df096fc0

dispatch: use pycompat.maplist() instead of map() to get a list
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 26 Mar 2017 20:49:18 +0530
parents 9916b3d579a9
children c13ff31818b0
comparison
equal deleted inserted replaced
31628:e86eb75e74ce 31629:2632df096fc0
400 self.badalias = (_("alias '%s' resolves to ambiguous command '%s'") 400 self.badalias = (_("alias '%s' resolves to ambiguous command '%s'")
401 % (self.name, cmd)) 401 % (self.name, cmd))
402 402
403 @property 403 @property
404 def args(self): 404 def args(self):
405 args = map(util.expandpath, self.givenargs) 405 args = pycompat.maplist(util.expandpath, self.givenargs)
406 return aliasargs(self.fn, args) 406 return aliasargs(self.fn, args)
407 407
408 def __getattr__(self, name): 408 def __getattr__(self, name):
409 adefaults = {'norepo': True, 'optionalrepo': False, 'inferrepo': False} 409 adefaults = {'norepo': True, 'optionalrepo': False, 'inferrepo': False}
410 if name not in adefaults: 410 if name not in adefaults: