summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/component.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/component.py b/python/component.py
index 0c772de8..3f56fe71 100644
--- a/python/component.py
+++ b/python/component.py
@@ -48,6 +48,9 @@ class Component:
def __str__(self):
return self._sprawl_component(self)
+ def __hash__(self):
+ return hash(self.guid)
+
def _sprawl_component(self, c, depth=1, out=None):
"""
Recursive quick function to print out the component's tree of items