Show More
@@ -423,11 +423,11 b" if pycompat.osname == 'nt':" | |||||
423 | ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)', |
|
423 | ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)', | |
424 | re.MULTILINE | re.DOTALL) |
|
424 | re.MULTILINE | re.DOTALL) | |
425 |
|
425 | |||
426 | def win32print(writefunc, *msgs, **opts): |
|
426 | def win32print(ui, writefunc, *msgs, **opts): | |
427 | for text in msgs: |
|
427 | for text in msgs: | |
428 | _win32print(text, writefunc, **opts) |
|
428 | _win32print(ui, text, writefunc, **opts) | |
429 |
|
429 | |||
430 | def _win32print(text, writefunc, **opts): |
|
430 | def _win32print(ui, text, writefunc, **opts): | |
431 | label = opts.get('label', '') |
|
431 | label = opts.get('label', '') | |
432 | attr = origattr |
|
432 | attr = origattr | |
433 |
|
433 |
@@ -805,7 +805,7 b' class ui(object):' | |||||
805 | elif self._colormode == 'win32': |
|
805 | elif self._colormode == 'win32': | |
806 | # windows color printing is its own can of crab, defer to |
|
806 | # windows color printing is its own can of crab, defer to | |
807 | # the color module and that is it. |
|
807 | # the color module and that is it. | |
808 | color.win32print(self._write, *args, **opts) |
|
808 | color.win32print(self, self._write, *args, **opts) | |
809 | else: |
|
809 | else: | |
810 | msgs = args |
|
810 | msgs = args | |
811 | if self._colormode is not None: |
|
811 | if self._colormode is not None: | |
@@ -831,7 +831,7 b' class ui(object):' | |||||
831 | elif self._colormode == 'win32': |
|
831 | elif self._colormode == 'win32': | |
832 | # windows color printing is its own can of crab, defer to |
|
832 | # windows color printing is its own can of crab, defer to | |
833 | # the color module and that is it. |
|
833 | # the color module and that is it. | |
834 | color.win32print(self._write_err, *args, **opts) |
|
834 | color.win32print(self, self._write_err, *args, **opts) | |
835 | else: |
|
835 | else: | |
836 | msgs = args |
|
836 | msgs = args | |
837 | if self._colormode is not None: |
|
837 | if self._colormode is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now