D4673: py3: use pycompat.maplist instead of map

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Thu Sep 20 15:42:12 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7e3ce2131882: py3: use pycompat.maplist instead of map (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4673?vs=11210&id=11230

REVISION DETAIL
  https://phab.mercurial-scm.org/D4673

AFFECTED FILES
  hgext/fastannotate/formatter.py

CHANGE DETAILS

diff --git a/hgext/fastannotate/formatter.py b/hgext/fastannotate/formatter.py
--- a/hgext/fastannotate/formatter.py
+++ b/hgext/fastannotate/formatter.py
@@ -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)
 



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list