equal
deleted
inserted
replaced
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 |