##// END OF EJS Templates
ui: indent _writenobuf() to prepare moving bits from _write() functions
Yuya Nishihara -
r40558:0c7b2035 default
parent child Browse files
Show More
@@ -952,6 +952,7 b' class ui(object):'
952 def _writenobuf(self, write, *args, **opts):
952 def _writenobuf(self, write, *args, **opts):
953 self._progclear()
953 self._progclear()
954 msg = b''.join(args)
954 msg = b''.join(args)
955 try:
955 if self._colormode == 'win32':
956 if self._colormode == 'win32':
956 # windows color printing is its own can of crab, defer to
957 # windows color printing is its own can of crab, defer to
957 # the color module and that is it.
958 # the color module and that is it.
@@ -961,6 +962,8 b' class ui(object):'
961 label = opts.get(r'label', '')
962 label = opts.get(r'label', '')
962 msg = self.label(msg, label)
963 msg = self.label(msg, label)
963 write(msg)
964 write(msg)
965 finally:
966 pass
964
967
965 def _write(self, data):
968 def _write(self, data):
966 # opencode timeblockedsection because this is a critical path
969 # opencode timeblockedsection because this is a critical path
General Comments 0
You need to be logged in to leave comments. Login now