From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD774138350 for ; Sat, 18 Apr 2020 20:30:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6DBBE099F; Sat, 18 Apr 2020 20:30:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2E6FE099F for ; Sat, 18 Apr 2020 20:30:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CF5034F042 for ; Sat, 18 Apr 2020 20:30:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 61A1C1DD for ; Sat, 18 Apr 2020 20:30:42 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1587241598.060df92357aed97af955aa36caf47e8518b01e05.mattst88@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/genbase.py X-VCS-Directories: catalyst/base/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 060df92357aed97af955aa36caf47e8518b01e05 X-VCS-Branch: master Date: Sat, 18 Apr 2020 20:30:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fcc8640f-cf35-4e99-a6ff-3fad79957d02 X-Archives-Hash: 46b97c55de5df88b481904279d9735a5 commit: 060df92357aed97af955aa36caf47e8518b01e05 Author: Matt Turner gentoo org> AuthorDate: Sat Apr 18 20:25:38 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Sat Apr 18 20:26:38 2020 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=060df923 catalyst: Open CONTENTS file in text mode Fixes: bb21b8615e64 (catalyst: gzip the .CONTENTS file) Signed-off-by: Matt Turner gentoo.org> 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 3db20f84..c7dd87bc 100644 --- a/catalyst/base/genbase.py +++ b/catalyst/base/genbase.py @@ -29,7 +29,7 @@ class GenBase(): def gen_contents_file(self, path): c = self.settings['contents_map'] - with gzip.open(path + '.CONTENTS.gz', 'w', encoding='utf-8') as file: + with gzip.open(path + '.CONTENTS.gz', 'wt', encoding='utf-8') as file: file.write(c.contents(path, '', verbose=self.settings['VERBOSE'])) def gen_digest_file(self, path):