From e99c3cdffe1f5415b959ab1677e125530122bcec Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Aug 2010 13:51:35 -0700 Subject: [PATCH] Make EOutput.write() use writemsg() for special unicode handling. --- pym/portage/output.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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: -- 2.26.2