summaryrefslogtreecommitdiff
path: root/python/ovs/db/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/ovs/db/data.py')
-rw-r--r--python/ovs/db/data.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/ovs/db/data.py b/python/ovs/db/data.py
index 99bf80ed6..8db21b837 100644
--- a/python/ovs/db/data.py
+++ b/python/ovs/db/data.py
@@ -64,6 +64,8 @@ def returnUnchanged(x):
@functools.total_ordering
class Atom(object):
+ __slots__ = ('value', 'type')
+
def __init__(self, type_, value=None):
self.type = type_
if value is not None:
@@ -266,6 +268,8 @@ class Atom(object):
@functools.total_ordering
class Datum(object):
+ __slots__ = ('type', 'values')
+
def __init__(self, type_, values={}):
self.type = type_
self.values = values