diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-08-24 17:21:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-08-24 17:21:47 +0000 |
commit | 45f577605f78da1ea0c0155a712a22428313f379 (patch) | |
tree | 2cdf65bd4981579a90b1555adda047934414220a /pym/portage/dbapi/vartree.py | |
parent | 4a781e5c2687466b194ade50a59a989fa02de29c (diff) | |
download | portage-45f577605f78da1ea0c0155a712a22428313f379.tar.gz portage-45f577605f78da1ea0c0155a712a22428313f379.tar.bz2 portage-45f577605f78da1ea0c0155a712a22428313f379.zip |
Avoid possible AttributeError raised from _ObjectKey.__eq__().
svn path=/main/trunk/; revision=11466
Diffstat (limited to 'pym/portage/dbapi/vartree.py')
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 |
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): |