mercurial/formatter.py
changeset 40277 1159031ada1e
parent 40274 a8b9174517c7
child 41996 77ef3498ceb3
equal deleted inserted replaced
40276:be57c7019c70 40277:1159031ada1e
   322     def __init__(self, ui, out, topic, opts):
   322     def __init__(self, ui, out, topic, opts):
   323         baseformatter.__init__(self, ui, topic, opts, _nullconverter)
   323         baseformatter.__init__(self, ui, topic, opts, _nullconverter)
   324         self._out = out
   324         self._out = out
   325         self._out.write("%s = [\n" % self._topic)
   325         self._out.write("%s = [\n" % self._topic)
   326     def _showitem(self):
   326     def _showitem(self):
   327         self._out.write('    %s,\n' % stringutil.pprint(self._item))
   327         self._out.write('    %s,\n'
       
   328                         % stringutil.pprint(self._item, indent=4, level=1))
   328     def end(self):
   329     def end(self):
   329         baseformatter.end(self)
   330         baseformatter.end(self)
   330         self._out.write("]\n")
   331         self._out.write("]\n")
   331 
   332 
   332 class pickleformatter(baseformatter):
   333 class pickleformatter(baseformatter):