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 1R8Z7S-0003Rn-RB for garchives@archives.gentoo.org; Tue, 27 Sep 2011 14:58:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 395C521C0F1; Tue, 27 Sep 2011 14:58:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0874221C0F1 for ; Tue, 27 Sep 2011 14:58:40 +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 71D821B4010 for ; Tue, 27 Sep 2011 14:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 83BDB80042 for ; Tue, 27 Sep 2011 14:58:39 +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/porttree.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: da782a6de61a3c0d9cd079c14d920852d2a4db9b Date: Tue, 27 Sep 2011 14:58:39 +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: 43543c86f9b8bdfdc71cf8df30f14b31 commit: da782a6de61a3c0d9cd079c14d920852d2a4db9b Author: Zac Medico gentoo org> AuthorDate: Tue Sep 27 14:58:26 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Sep 27 14:58:26 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dda782a6d porttree.py: remove unused variables --- pym/portage/dbapi/porttree.py | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.p= y index d710d64..e679f00 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -235,13 +235,12 @@ class portdbapi(dbapi): group.""" =20 dirmode =3D 0o2070 - filemode =3D 0o60 modemask =3D 0o2 =20 try: ensure_dirs(self.depcachedir, gid=3Dportage_gid, mode=3Ddirmode, mask=3Dmodemask) - except PortageException as e: + except PortageException: pass =20 def close_caches(self): @@ -626,7 +625,7 @@ class portdbapi(dbapi): mystat =3D None try: mystat =3D os.stat(file_path) - except OSError as e: + except OSError: pass if mystat is None: existing_size =3D 0 @@ -1130,9 +1129,9 @@ class portagetree(object): myslot =3D "" try: myslot =3D self.dbapi.aux_get(mycatpkg, ["SLOT"])[0] - except SystemExit as e: + except SystemExit: raise - except Exception as e: + except Exception: pass return myslot =20 @@ -1193,7 +1192,7 @@ def _parse_uri_map(cpv, metadata, use=3DNone): while myuris: uri =3D myuris.pop() if myuris and myuris[-1] =3D=3D "->": - operator =3D myuris.pop() + myuris.pop() distfile =3D myuris.pop() else: distfile =3D os.path.basename(uri) @@ -1208,6 +1207,5 @@ def _parse_uri_map(cpv, metadata, use=3DNone): uri_map[distfile] =3D uri_set uri_set.add(uri) uri =3D None - operator =3D None =20 return uri_map