summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index aa7c9c3fe..b3eefe8c4 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -167,6 +167,8 @@ class LinkageMap(object):
return hash(self._key)
def __eq__(self, other):
+ if not isinstance(other, self.__class__):
+ return False
return self._key == other._key
def _generate_object_key(self, object):