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 1RKPcx-0007VB-0o for garchives@archives.gentoo.org; Sun, 30 Oct 2011 07:16:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96CCB21C056; Sun, 30 Oct 2011 07:16:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 69F4C21C056 for ; Sun, 30 Oct 2011 07:16:11 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC8CE1B401F for ; Sun, 30 Oct 2011 07:16:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D55AF80042 for ; Sun, 30 Oct 2011 07:16:09 +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: <4cf9c9eb3d11fb653695c483d0013cba8b08039a.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/package/ebuild/_config/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/package/ebuild/_config/LocationsManager.py X-VCS-Directories: pym/portage/package/ebuild/_config/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 4cf9c9eb3d11fb653695c483d0013cba8b08039a Date: Sun, 30 Oct 2011 07:16:09 +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: e6f11a52721a9c6a5bbaad465fb3b97b commit: 4cf9c9eb3d11fb653695c483d0013cba8b08039a Author: Zac Medico gentoo org> AuthorDate: Sun Oct 30 07:15:57 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Oct 30 07:15:57 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D4cf9c9eb _profile_node: use collections.namedtuple --- .../package/ebuild/_config/LocationsManager.py | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py b/pym= /portage/package/ebuild/_config/LocationsManager.py index 244b7e0..f559bb5 100644 --- a/pym/portage/package/ebuild/_config/LocationsManager.py +++ b/pym/portage/package/ebuild/_config/LocationsManager.py @@ -5,6 +5,7 @@ __all__ =3D ( 'LocationsManager', ) =20 +import collections import io import warnings =20 @@ -23,17 +24,8 @@ _PORTAGE1_DIRECTORIES =3D frozenset([ 'package.use', 'package.use.mask', 'package.use.force', 'use.mask', 'use.force']) =20 -class _profile_node(object): - - __slots__ =3D ('location', 'portage1_directories') - - def __init__(self, location, portage1_directories): - object.__setattr__(self, 'location', location) - object.__setattr__(self, 'portage1_directories', portage1_directories) - - def __setattr__(self, name, value): - raise AttributeError("_profile_node instances are immutable", - self.__class__, name, value) +_profile_node =3D collections.namedtuple('_profile_node', + 'location portage1_directories') =20 class LocationsManager(object): =20