From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QgiyX-0004eX-GZ for garchives@archives.gentoo.org; Tue, 12 Jul 2011 19:50:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F318521C09D; Tue, 12 Jul 2011 19:50:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BD3BB21C09D for ; Tue, 12 Jul 2011 19:50:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 47CE22AC223 for ; Tue, 12 Jul 2011 19:50:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 76EC38003D for ; Tue, 12 Jul 2011 19:50:22 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/vartree.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: e38c55ac49dcbd004ebbc65fd28053198b521ce8 Date: Tue, 12 Jul 2011 19:50:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 79f2986747056e8b9c29065488cb920d commit: e38c55ac49dcbd004ebbc65fd28053198b521ce8 Author: Zac Medico gentoo org> AuthorDate: Tue Jul 12 19:48:45 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Jul 12 19:48:45 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3De38c55ac Use explicit 'mode' keyword arg with io.open(). --- pym/portage/dbapi/vartree.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index bec3d66..9efc47f 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3385,8 +3385,8 @@ class dblink(object): counter =3D self.vartree.dbapi.counter_tick(mycpv=3Dself.mycpv) io.open(_unicode_encode(os.path.join(self.dbtmpdir, 'COUNTER'), encoding=3D_encodings['fs'], errors=3D'strict'), - 'w', encoding=3D_encodings['repo.content'], errors=3D'backslashreplac= e' - ).write(_unicode_decode(str(counter))) + mode=3D'w', encoding=3D_encodings['repo.content'], + errors=3D'backslashreplace').write(_unicode_decode(str(counter))) =20 self.updateprotect() =20