diff options
Diffstat (limited to 'pym/portage/output.py')
-rw-r--r-- | pym/portage/output.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py index a0846b392..1bceb0e90 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -3,12 +3,12 @@ __docformat__ = "epytext" -import codecs try: from subprocess import getstatusoutput as subprocess_getstatusoutput except ImportError: from commands import getstatusoutput as subprocess_getstatusoutput import errno +import io import formatter import re import sys @@ -168,7 +168,7 @@ def _parse_color_map(config_root='/', onerror=None): return token try: lineno=0 - for line in codecs.open(_unicode_encode(myfile, + for line in io.open(_unicode_encode(myfile, encoding=_encodings['fs'], errors='strict'), mode='r', encoding=_encodings['content'], errors='replace'): lineno += 1 |