diff options
Diffstat (limited to 'pym/repoman')
-rw-r--r-- | pym/repoman/utilities.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 9d4898e8a..232739ea0 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -1,5 +1,5 @@ # repoman: Utilities -# Copyright 2007-2010 Gentoo Foundation +# Copyright 2007-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 """This module contains utility functions to help repoman find ebuilds to @@ -20,8 +20,8 @@ __all__ = [ "check_metadata" ] -import codecs import errno +import io import logging import sys from portage import os @@ -326,7 +326,7 @@ def get_commit_message_with_editor(editor, message=None): if not (os.WIFEXITED(retval) and os.WEXITSTATUS(retval) == os.EX_OK): return None try: - mylines = codecs.open(_unicode_encode(filename, + mylines = io.open(_unicode_encode(filename, encoding=_encodings['fs'], errors='strict'), mode='r', encoding=_encodings['content'], errors='replace' ).readlines() |