##// END OF EJS Templates
color: pass write/write_err to win32print correctly (issue2312)
Brodie Rao -
r11727:c34a1ab8 stable
parent child Browse files
Show More
@@ -154,7 +154,7 b' class colorui(uimod.ui):'
154 154 self._buffers[-1].extend([(str(a), label) for a in args])
155 155 elif self._colormode == 'win32':
156 156 for a in args:
157 win32print(a, orig, **opts)
157 win32print(a, super(colorui, self).write, **opts)
158 158 else:
159 159 return super(colorui, self).write(
160 160 *[self.label(str(a), label) for a in args], **opts)
@@ -163,7 +163,7 b' class colorui(uimod.ui):'
163 163 label = opts.get('label', '')
164 164 if self._colormode == 'win32':
165 165 for a in args:
166 win32print(a, orig, **opts)
166 win32print(a, super(colorui, self).write_err, **opts)
167 167 else:
168 168 return super(colorui, self).write(
169 169 *[self.label(str(a), label) for a in args], **opts)
General Comments 0
You need to be logged in to leave comments. Login now