# HG changeset patch # User Brodie Rao # Date 2010-08-01 20:26:02 # Node ID c34a1ab80550aeb230680d735defe9f8a82f5b66 # Parent 56b41b2cc690be892af61e1e310c64a7e0f67fde color: pass write/write_err to win32print correctly (issue2312) diff --git a/hgext/color.py b/hgext/color.py --- a/hgext/color.py +++ b/hgext/color.py @@ -154,7 +154,7 @@ class colorui(uimod.ui): self._buffers[-1].extend([(str(a), label) for a in args]) elif self._colormode == 'win32': for a in args: - win32print(a, orig, **opts) + win32print(a, super(colorui, self).write, **opts) else: return super(colorui, self).write( *[self.label(str(a), label) for a in args], **opts) @@ -163,7 +163,7 @@ class colorui(uimod.ui): label = opts.get('label', '') if self._colormode == 'win32': for a in args: - win32print(a, orig, **opts) + win32print(a, super(colorui, self).write_err, **opts) else: return super(colorui, self).write( *[self.label(str(a), label) for a in args], **opts)