From 2057f6c74e6c19e14570745513023409b6c0ba08 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Fri, 21 Sep 2007 12:23:57 +0000
Subject: [PATCH] Add __slots__ on TaggableObject

Unless we use __slots__ on all parents, we don't get the benefits that
__slots__ bring. This patch adds this attribute to the TaggableObject so
that Instances, Nodes and the Clusters behave as intended.

Reviewed-by: schreiberal,imsnah
---
 lib/objects.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/objects.py b/lib/objects.py
index 0d409cc5c..1314e8872 100644
--- a/lib/objects.py
+++ b/lib/objects.py
@@ -152,6 +152,8 @@ class TaggableObject(object):
   """An generic class supporting tags.
 
   """
+  __slots__ = []
+
   @staticmethod
   def ValidateTag(tag):
     """Check if a tag is valid.
-- 
GitLab