From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-845185-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 85A801384B4 for <garchives@archives.gentoo.org>; Tue, 10 Nov 2015 06:42:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 459A621C004; Tue, 10 Nov 2015 06:42:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E3ED121C004 for <gentoo-commits@lists.gentoo.org>; Tue, 10 Nov 2015 06:42:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D357133D3D0 for <gentoo-commits@lists.gentoo.org>; Tue, 10 Nov 2015 06:42:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D9272411 for <gentoo-commits@lists.gentoo.org>; Tue, 10 Nov 2015 06:42:21 +0000 (UTC) From: "Brian Dolbec" <dolsen@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" <dolsen@gentoo.org> Message-ID: <1447137436.d174bfbeb410f07a34a81c8d56b02df5b53f76ae.dolsen@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: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: d174bfbeb410f07a34a81c8d56b02df5b53f76ae X-VCS-Branch: master Date: Tue, 10 Nov 2015 06:42:21 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5cd15560-5e8a-40f9-a2c3-45379833bd06 X-Archives-Hash: 0e13bf60e8fed736707681e9f7cec42f Message-ID: <20151110064221.hgRABQ6tZdXrMWKidpAL4i29K7wloORq9unBbtiolJQ@z> 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