Patchwork D5613: fastannotate: use pycompat.maplist instead of map

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:22 p.m.
Message ID <4052598f736ad4b4c087fbd34d4dc73a@localhost.localdomain>
Download mbox | patch
Permalink /patch/37830/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc2f62720e37d: fastannotate: use pycompat.maplist instead of map (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5613?vs=13274&id=13293

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

AFFECTED FILES
  hgext/fastannotate/formatter.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/fastannotate/formatter.py b/hgext/fastannotate/formatter.py
--- a/hgext/fastannotate/formatter.py
+++ b/hgext/fastannotate/formatter.py
@@ -128,7 +128,7 @@ 
         if annotatedresult:
             self._writecomma()
 
-        pieces = [(name, map(f, annotatedresult))
+        pieces = [(name, pycompat.maplist(f, annotatedresult))
                   for f, sep, name, enc in self.funcmap]
         if lines is not None:
             pieces.append(('line', lines))