Mercurial > hg
changeset 39726:7e3ce2131882
py3: use pycompat.maplist instead of map
Differential Revision: https://phab.mercurial-scm.org/D4673
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Thu, 20 Sep 2018 18:33:53 +0300 |
parents | be396c86f98e |
children | a2bb0ec3b4d4 |
files | hgext/fastannotate/formatter.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/fastannotate/formatter.py Thu Sep 20 17:23:20 2018 +0300 +++ b/hgext/fastannotate/formatter.py Thu Sep 20 18:33:53 2018 +0300 @@ -78,7 +78,7 @@ pieces.append(l) if name in ['node', 'date']: # node and date has fixed size l = l[:1] - widths = map(encoding.colwidth, set(l)) + widths = pycompat.maplist(encoding.colwidth, set(l)) maxwidth = (max(widths) if widths else 0) maxwidths.append(maxwidth)