hgext/fastannotate/formatter.py
changeset 41263 c2f62720e37d
parent 41262 e40b7a504b1d
child 41398 2ff8994ac71d
equal deleted inserted replaced
41262:e40b7a504b1d 41263:c2f62720e37d
   126 
   126 
   127     def write(self, annotatedresult, lines=None, existinglines=None):
   127     def write(self, annotatedresult, lines=None, existinglines=None):
   128         if annotatedresult:
   128         if annotatedresult:
   129             self._writecomma()
   129             self._writecomma()
   130 
   130 
   131         pieces = [(name, map(f, annotatedresult))
   131         pieces = [(name, pycompat.maplist(f, annotatedresult))
   132                   for f, sep, name, enc in self.funcmap]
   132                   for f, sep, name, enc in self.funcmap]
   133         if lines is not None:
   133         if lines is not None:
   134             pieces.append(('line', lines))
   134             pieces.append(('line', lines))
   135         pieces.sort()
   135         pieces.sort()
   136 
   136