##// END OF EJS Templates
formatter: set _first on formatter, not ui...
Martin von Zweigbergk -
r31298:59d09565 default
parent child Browse files
Show More
@@ -305,10 +305,10 b' class jsonformatter(baseformatter):'
305 305 baseformatter.__init__(self, ui, topic, opts, _nullconverter)
306 306 self._out = out
307 307 self._out.write("[")
308 self._ui._first = True
308 self._first = True
309 309 def _showitem(self):
310 if self._ui._first:
311 self._ui._first = False
310 if self._first:
311 self._first = False
312 312 else:
313 313 self._out.write(",")
314 314
General Comments 0
You need to be logged in to leave comments. Login now