diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 06:45:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 06:45:10 +0000 |
commit | 0c92f08ac89ef26ed774db7c46dc6fc6aa5201cf (patch) | |
tree | 439304ec0c4936755a515316e5cca75d65cd6d31 /pym | |
parent | 5f31b8cfbee443bebc6b65bbc17b185f7013f273 (diff) | |
download | portage-0c92f08ac89ef26ed774db7c46dc6fc6aa5201cf.tar.gz portage-0c92f08ac89ef26ed774db7c46dc6fc6aa5201cf.tar.bz2 portage-0c92f08ac89ef26ed774db7c46dc6fc6aa5201cf.zip |
Define __slots__ for classes derived from ObjectProxy. (trunk r12769)
svn path=/main/branches/2.1.6/; revision=13013
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 109d82af8..7a3a9f270 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7920,6 +7920,9 @@ class _LegacyGlobalProxy(proxy.objectproxy.ObjectProxy): Instances of these serve as proxies to global variables that are initialized on demand. """ + + __slots__ = ('_name',) + def __init__(self, name): proxy.objectproxy.ObjectProxy.__init__(self) object.__setattr__(self, '_name', name) @@ -7936,6 +7939,8 @@ class _PortdbProxy(proxy.objectproxy.ObjectProxy): are needed while the portdb is not. """ + __slots__ = () + def _get_target(self): init_legacy_globals() global db, portdb, root, _portdb_initialized @@ -7949,6 +7954,8 @@ class _MtimedbProxy(proxy.objectproxy.ObjectProxy): The mtimedb is independent from the portdb and other globals. """ + __slots__ = ('_name',) + def __init__(self, name): proxy.objectproxy.ObjectProxy.__init__(self) object.__setattr__(self, '_name', name) |