aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/tree.py')
-rw-r--r--libbe/tree.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbe/tree.py b/libbe/tree.py
index d3f6bcd..1daac44 100644
--- a/libbe/tree.py
+++ b/libbe/tree.py
@@ -87,6 +87,12 @@ class Tree(list):
def __cmp__(self, other):
return cmp(id(self), id(other))
+ def __eq__(self, other):
+ return self.__cmp__(other) == 0
+
+ def __ne__(self, other):
+ return self.__cmp__(other) != 0
+
def branch_len(self):
"""
Exhaustive search every time == SLOW.