Define __slots__ for the _use_dep class.
authorZac Medico <zmedico@gentoo.org>
Tue, 27 May 2008 04:10:11 +0000 (04:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 May 2008 04:10:11 +0000 (04:10 -0000)
svn path=/main/trunk/; revision=10441

pym/portage/dep.py

index 8c819138ff871b8fcfcfc086f12d5d75549679f0..a98979969574e685c2826b9f6a2a474619794c39 100644 (file)
@@ -338,6 +338,10 @@ def dep_opconvert(deplist):
        return retlist
 
 class _use_dep(object):
+
+       __slots__ = ("__weakref__", "conditional", "conditional_disabled",
+               "conditional_enabled", "disabled", "enabled", "tokens", "required")
+
        def __init__(self, use):
                enabled_flags = []
                disabled_flags = []