fastannotate: use pycompat.maplist instead of map
authorAugie Fackler <augie@google.com>
Wed, 16 Jan 2019 11:56:08 -0500
changeset 41263 c2f62720e37d
parent 41262 e40b7a504b1d
child 41264 dfc73c803b77
fastannotate: use pycompat.maplist instead of map Differential Revision: https://phab.mercurial-scm.org/D5613
hgext/fastannotate/formatter.py
--- a/hgext/fastannotate/formatter.py	Wed Jan 16 11:55:49 2019 -0500
+++ b/hgext/fastannotate/formatter.py	Wed Jan 16 11:56:08 2019 -0500
@@ -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))