From: Zac Medico Date: Sun, 22 Aug 2010 20:51:35 +0000 (-0700) Subject: Make EOutput.write() use writemsg() for special unicode handling. X-Git-Tag: v2.2_rc68~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e99c3cdffe1f5415b959ab1677e125530122bcec;p=portage.git Make EOutput.write() use writemsg() for special unicode handling. --- diff --git a/pym/portage/output.py b/pym/portage/output.py index abe10f5f7..a195db4fc 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -493,12 +493,7 @@ class EOutput(object): def _write(self, f, s): # avoid potential UnicodeEncodeError - s = _unicode_encode(s, - encoding=_encodings['stdio'], errors='backslashreplace') - if sys.hexversion >= 0x3000000: - f = f.buffer - f.write(s) - f.flush() + writemsg(s, noiselevel=-1, fd=f) def __eend(self, caller, errno, msg): if errno == 0: