commit: d174bfbeb410f07a34a81c8d56b02df5b53f76ae
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 10 06:36:23 2015 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Nov 10 06:37:16 2015 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=d174bfbe
genbase.py: Switch from codecs.open to io.open
io.open is the builtin open() in py3
catalyst/base/genbase.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/catalyst/base/genbase.py b/catalyst/base/genbase.py
index 0c8dbb9..8af3b97 100644
--- a/catalyst/base/genbase.py
+++ b/catalyst/base/genbase.py
@@ -1,5 +1,5 @@
-import codecs
+import io
import os
@@ -18,7 +18,7 @@ class GenBase(object):
if "contents" in self.settings:
contents_map = self.settings["contents_map"]
if os.path.exists(path):
- with codecs.open(contents, "w",
encoding='utf-8') as myf:
+ with io.open(contents, "w", encoding='utf-8')
as myf:
keys={}
for i in
self.settings["contents"].split():
keys[i]=1
@@ -36,7 +36,7 @@ class GenBase(object):
if "digests" in self.settings:
hash_map = self.settings["hash_map"]
if os.path.exists(path):
- with codecs.open(digests, "w",
encoding='utf-8') as myf:
+ with io.open(digests, "w", encoding='utf-8') as
myf:
keys={}
for i in
self.settings["digests"].split():
keys[i]=1