##// END OF EJS Templates
ui: extract the low level part of 'write' in a dedicated function...
Pierre-Yves David -
r31090:e9f96ccf default
parent child Browse files
Show More
@@ -796,11 +796,14 b' class ui(object):'
796 if self._buffers and not opts.get('prompt', False):
796 if self._buffers and not opts.get('prompt', False):
797 self._buffers[-1].extend(a for a in args)
797 self._buffers[-1].extend(a for a in args)
798 else:
798 else:
799 self._write(*args, **opts)
800
801 def _write(self, *msgs, **opts):
799 self._progclear()
802 self._progclear()
800 # opencode timeblockedsection because this is a critical path
803 # opencode timeblockedsection because this is a critical path
801 starttime = util.timer()
804 starttime = util.timer()
802 try:
805 try:
803 for a in args:
806 for a in msgs:
804 self.fout.write(a)
807 self.fout.write(a)
805 finally:
808 finally:
806 self._blockedtimes['stdio_blocked'] += \
809 self._blockedtimes['stdio_blocked'] += \
General Comments 0
You need to be logged in to leave comments. Login now