From 45f577605f78da1ea0c0155a712a22428313f379 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 24 Aug 2008 17:21:47 +0000 Subject: [PATCH] Avoid possible AttributeError raised from _ObjectKey.__eq__(). svn path=/main/trunk/; revision=11466 --- pym/portage/dbapi/vartree.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.26.2