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 1QwjcZ-00081U-UQ for garchives@archives.gentoo.org; Thu, 25 Aug 2011 23:46:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E330321C06E; Thu, 25 Aug 2011 23:45:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id ABBFE21C06E for ; Thu, 25 Aug 2011 23:45:56 +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 A4C4F1B4024 for ; Thu, 25 Aug 2011 23:45:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 4E4BB80040 for ; Thu, 25 Aug 2011 23:45:54 +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: <0484dccadf2021fd288daccea881ee1d352b0f7d.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/dispatch-conf X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 0484dccadf2021fd288daccea881ee1d352b0f7d Date: Thu, 25 Aug 2011 23:45:54 +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: 0a327f85f25075f1f9947fefa29fd983 commit: 0484dccadf2021fd288daccea881ee1d352b0f7d Author: Zac Medico gentoo org> AuthorDate: Thu Aug 25 23:45:32 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Aug 25 23:45:32 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D0484dcca python3.2 fixes: ResourceWarning: unclosed file --- bin/dispatch-conf | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 1e21a52..497927d 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 =20 # @@ -100,7 +100,9 @@ class dispatch: path, basename =3D os.path.split(path) find_opts =3D "-maxdepth 1" =20 - confs +=3D self.massage(os.popen(FIND_EXTANT_CONFIGS % (path= , find_opts, basename)).readlines()) + with os.popen(FIND_EXTANT_CONFIGS % + (path, find_opts, basename)) as proc: + confs +=3D self.massage(proc.readlines()) =20 if self.options['use-rcs'] =3D=3D 'yes': for rcs_util in ("rcs", "ci", "co", "rcsmerge"):