public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r13013 - main/branches/2.1.6/pym/portage
@ 2009-03-11  6:45 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-03-11  6:45 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-03-11 06:45:10 +0000 (Wed, 11 Mar 2009)
New Revision: 13013

Modified:
   main/branches/2.1.6/pym/portage/__init__.py
Log:
Define __slots__ for classes derived from ObjectProxy. (trunk r12769)

Modified: main/branches/2.1.6/pym/portage/__init__.py
===================================================================
--- main/branches/2.1.6/pym/portage/__init__.py	2009-03-11 06:44:50 UTC (rev 13012)
+++ main/branches/2.1.6/pym/portage/__init__.py	2009-03-11 06:45:10 UTC (rev 13013)
@@ -7920,6 +7920,9 @@
 	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 @@
 	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 @@
 	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)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-11  6:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11  6:45 [gentoo-commits] portage r13013 - main/branches/2.1.6/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox