##// END OF EJS Templates
formatter: add nullformatter...
Yuya Nishihara -
r32575:e9bf3e13 default
parent child Browse files
Show More
@@ -207,6 +207,10 b' class baseformatter(object):'
207 if self._item is not None:
207 if self._item is not None:
208 self._showitem()
208 self._showitem()
209
209
210 def nullformatter(ui, topic):
211 '''formatter that prints nothing'''
212 return baseformatter(ui, topic, opts={}, converter=_nullconverter)
213
210 class _nestedformatter(baseformatter):
214 class _nestedformatter(baseformatter):
211 '''build sub items and store them in the parent formatter'''
215 '''build sub items and store them in the parent formatter'''
212 def __init__(self, ui, converter, data):
216 def __init__(self, ui, converter, data):
General Comments 0
You need to be logged in to leave comments. Login now