summaryrefslogtreecommitdiffstats
path: root/pym/portage/cvstree.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cvstree.py')
-rw-r--r--pym/portage/cvstree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/cvstree.py b/pym/portage/cvstree.py
index de580f57e..9ba22f315 100644
--- a/pym/portage/cvstree.py
+++ b/pym/portage/cvstree.py
@@ -4,7 +4,7 @@
from __future__ import print_function
-import codecs
+import io
import re
import stat
import sys
@@ -53,7 +53,7 @@ def isadded(entries, path):
filename=os.path.basename(path)
try:
- myfile = codecs.open(
+ myfile = io.open(
_unicode_encode(os.path.join(basedir, 'CVS', 'Entries'),
encoding=_encodings['fs'], errors='strict'),
mode='r', encoding=_encodings['content'], errors='strict')
@@ -207,7 +207,7 @@ def getentries(mydir,recursive=0):
if not os.path.exists(mydir):
return entries
try:
- myfile = codecs.open(_unicode_encode(myfn,
+ myfile = io.open(_unicode_encode(myfn,
encoding=_encodings['fs'], errors='strict'),
mode='r', encoding=_encodings['content'], errors='strict')
mylines=myfile.readlines()