From: Zac Medico Date: Sun, 24 Aug 2008 17:21:47 +0000 (-0000) Subject: Avoid possible AttributeError raised from _ObjectKey.__eq__(). X-Git-Tag: v2.2_rc9~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=45f577605f78da1ea0c0155a712a22428313f379;p=portage.git Avoid possible AttributeError raised from _ObjectKey.__eq__(). svn path=/main/trunk/; revision=11466 --- 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):