aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbe/tree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/tree.py b/libbe/tree.py
index 8077da7..d3f6bcd 100644
--- a/libbe/tree.py
+++ b/libbe/tree.py
@@ -84,8 +84,8 @@ class Tree(list):
>>> a.has_descendant(a, match_self=True)
True
"""
- def __eq__(self, other):
- return id(self) == id(other)
+ def __cmp__(self, other):
+ return cmp(id(self), id(other))
def branch_len(self):
"""