From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A531E1381F3 for ; Thu, 17 Oct 2013 06:58:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42BF7E09EF; Thu, 17 Oct 2013 06:57:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CD9D6E09EF for ; Thu, 17 Oct 2013 06:57:58 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6CD833EFAB for ; Thu, 17 Oct 2013 06:57:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 72E6BE5308 for ; Thu, 17 Oct 2013 06:57:56 +0000 (UTC) From: "Brian Dolbec" 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" Message-ID: <1381993024.168e7bf0f5ed0adf5acbf09bdd6c4181f5bcdcb8.dol-sen@gentoo> Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/configs.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 168e7bf0f5ed0adf5acbf09bdd6c4181f5bcdcb8 X-VCS-Branch: master Date: Thu, 17 Oct 2013 06:57:56 +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-Archives-Salt: 77f258de-21e4-4a32-a305-e697dfba877b X-Archives-Hash: 1b6edd8e36ab3856eb0dcbd089af233f commit: 168e7bf0f5ed0adf5acbf09bdd6c4181f5bcdcb8 Author: Brian Dolbec gentoo org> AuthorDate: Thu Oct 17 06:57:04 2013 +0000 Commit: Brian Dolbec gmail com> CommitDate: Thu Oct 17 06:57:04 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mirrorselect.git;a=commit;h=168e7bf0 Fix py3 compatibilty. --- mirrorselect/configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirrorselect/configs.py b/mirrorselect/configs.py index 3534b72..8a83287 100644 --- a/mirrorselect/configs.py +++ b/mirrorselect/configs.py @@ -105,7 +105,7 @@ def write_repos_conf(output, config_path, var, value): config.read(config_path) if config.has_option('gentoo', var): config.set('gentoo', var, value) - with open(config_path, 'wb') as configfile: + with open(config_path, 'w') as configfile: config.write(configfile) else: output.print_err("write_repos_conf(): Failed to find section 'gentoo',"