DependencyArg: add __slots__
authorZac Medico <zmedico@gentoo.org>
Sun, 17 Jun 2012 16:16:15 +0000 (09:16 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 17 Jun 2012 16:16:15 +0000 (09:16 -0700)
pym/_emerge/AtomArg.py
pym/_emerge/DependencyArg.py
pym/_emerge/SetArg.py

index a929b433e9a1f30e9e2cba0012b01d71774b59a4..343d7aaabd5ae70519bade5eff763fe5e75441cf 100644 (file)
@@ -1,10 +1,13 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 from portage._sets.base import InternalPackageSet
 from _emerge.DependencyArg import DependencyArg
 
 class AtomArg(DependencyArg):
+
+       __slots__ = ('atom', 'pset')
+
        def __init__(self, atom=None, **kwargs):
                DependencyArg.__init__(self, **kwargs)
                self.atom = atom
index 861d837546d2055833d9888321cffafd2e580752..fa1a47fb7fb053017115f67d208c4064fd488a4d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 import sys
@@ -6,6 +6,9 @@ import sys
 from portage import _encodings, _unicode_encode, _unicode_decode
 
 class DependencyArg(object):
+
+       __slots__ = ('arg', 'root_config')
+
        def __init__(self, arg=None, root_config=None):
                self.arg = arg
                self.root_config = root_config
index 94cf0a6ceb4e7b76ae6a2555f5d4b7483dde7262..5c829754760481bcee1e6f3f78c0d5a29977e462 100644 (file)
@@ -1,9 +1,12 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 from _emerge.DependencyArg import DependencyArg
 from portage._sets import SETPREFIX
 class SetArg(DependencyArg):
+
+       __slots__ = ('name', 'pset')
+
        def __init__(self, pset=None, **kwargs):
                DependencyArg.__init__(self, **kwargs)
                self.pset = pset