summaryrefslogtreecommitdiffstats
path: root/pym/portage/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/output.py')
-rw-r--r--pym/portage/output.py7
1 files changed, 1 insertions, 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: