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 1QxOBe-0000aU-5b for garchives@archives.gentoo.org; Sat, 27 Aug 2011 19:04:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1E2921C195; Sat, 27 Aug 2011 19:04:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B317F21C1A7 for ; Sat, 27 Aug 2011 19:04:49 +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 389281B4077 for ; Sat, 27 Aug 2011 19:04:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 724FC80040 for ; Sat, 27 Aug 2011 19:04:48 +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: <676bfd9efb7ea50256d4caa1273e7c40e8f28511.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/egencache X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 676bfd9efb7ea50256d4caa1273e7c40e8f28511 Date: Sat, 27 Aug 2011 19:04:48 +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: 2e9bec1bc9b17bcd80013bb84ee93447 commit: 676bfd9efb7ea50256d4caa1273e7c40e8f28511 Author: Zac Medico gentoo org> AuthorDate: Sat Aug 27 19:04:06 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Aug 27 19:04:06 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D676bfd9e egencache: don't require xml in global scope --- bin/egencache | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/egencache b/bin/egencache index a87394c..53ae565 100755 --- a/bin/egencache +++ b/bin/egencache @@ -368,14 +368,6 @@ class GenCache(object): "committing target: %s\n" % (ce,), level=3Dlogging.ERROR, noiselevel=3D-1) =20 -class _MetadataTreeBuilder(ElementTree.TreeBuilder): - """ - Implements doctype() as required to avoid deprecation warnings with - >=3Dpython-2.7. - """ - def doctype(self, name, pubid, system): - pass - class GenUseLocalDesc(object): def __init__(self, portdb, output=3DNone, preserve_comments=3DFalse): @@ -480,6 +472,14 @@ class GenUseLocalDesc(object): return 1 return (a > b) - (a < b) =20 + class _MetadataTreeBuilder(ElementTree.TreeBuilder): + """ + Implements doctype() as required to avoid deprecation warnings + since Python >=3D2.7 + """ + def doctype(self, name, pubid, system): + pass + for cp in self._portdb.cp_all(): metadata_path =3D os.path.join(repo_path, cp, 'metadata.xml') try: