Show More
@@ -952,15 +952,18 b' class ui(object):' | |||
|
952 | 952 | def _writenobuf(self, write, *args, **opts): |
|
953 | 953 | self._progclear() |
|
954 | 954 | msg = b''.join(args) |
|
955 | if self._colormode == 'win32': | |
|
956 | # windows color printing is its own can of crab, defer to | |
|
957 | # the color module and that is it. | |
|
958 | color.win32print(self, write, msg, **opts) | |
|
959 | else: | |
|
960 | if self._colormode is not None: | |
|
961 | label = opts.get(r'label', '') | |
|
962 | msg = self.label(msg, label) | |
|
963 | write(msg) | |
|
955 | try: | |
|
956 | if self._colormode == 'win32': | |
|
957 | # windows color printing is its own can of crab, defer to | |
|
958 | # the color module and that is it. | |
|
959 | color.win32print(self, write, msg, **opts) | |
|
960 | else: | |
|
961 | if self._colormode is not None: | |
|
962 | label = opts.get(r'label', '') | |
|
963 | msg = self.label(msg, label) | |
|
964 | write(msg) | |
|
965 | finally: | |
|
966 | pass | |
|
964 | 967 | |
|
965 | 968 | def _write(self, data): |
|
966 | 969 | # opencode timeblockedsection because this is a critical path |
General Comments 0
You need to be logged in to leave comments.
Login now