##// END OF EJS Templates
ui: optimize buffered write with no label...
Yuya Nishihara -
r41375:ff927ecb stable
parent child Browse files
Show More
@@ -1006,8 +1006,8 b' class ui(object):'
1006
1006
1007 def _write(self, dest, *args, **opts):
1007 def _write(self, dest, *args, **opts):
1008 if self._isbuffered(dest):
1008 if self._isbuffered(dest):
1009 if self._bufferapplylabels:
1010 label = opts.get(r'label', '')
1009 label = opts.get(r'label', '')
1010 if label and self._bufferapplylabels:
1011 self._buffers[-1].extend(self.label(a, label) for a in args)
1011 self._buffers[-1].extend(self.label(a, label) for a in args)
1012 else:
1012 else:
1013 self._buffers[-1].extend(args)
1013 self._buffers[-1].extend(args)
General Comments 0
You need to be logged in to leave comments. Login now