commit: 5df43dae5bd6a58d80bd4d478397e89bf04fdcd5
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 20:25:38 2020 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sun May 17 03:49:42 2020 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=5df43dae
catalyst: Open CONTENTS file in text mode
Fixes: bb21b8615e64 (catalyst: gzip the .CONTENTS file)
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
(cherry picked from commit 060df92357aed97af955aa36caf47e8518b01e05)
catalyst/base/genbase.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/catalyst/base/genbase.py b/catalyst/base/genbase.py
index 0fc1f57e..0909a475 100644
--- a/catalyst/base/genbase.py
+++ b/catalyst/base/genbase.py
@@ -19,7 +19,7 @@ class GenBase(object):
if "contents" in self.settings:
contents_map = self.settings["contents_map"]
if os.path.exists(path):
- with gzip.open(contents, "w", encoding='utf-8')
as myf:
+ with gzip.open(contents, "wt",
encoding='utf-8') as myf:
keys={}
for i in
self.settings["contents"].split():
keys[i]=1