From: Zac Medico Date: Mon, 25 Aug 2008 05:08:14 +0000 (-0000) Subject: Revert recent changes to _ObjectKey.__eq__() since it's probably a bug if X-Git-Tag: v2.2_rc9~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7d2d8ae9d179beb04a7eebe90792eeb496b9db9d;p=portage.git Revert recent changes to _ObjectKey.__eq__() since it's probably a bug if the wrong type is compared for equality anyway. svn path=/main/trunk/; revision=11474 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 2c030c13c..8d5d33d35 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -169,11 +169,6 @@ class LinkageMap(object): return hash(self._key) def __eq__(self, other): - if not isinstance(other, self.__class__): - # Can't safely return True in this case since - # if there is a hash collision then __eq__ needs - # to be relied upon for correct dict behavior. - return False return self._key == other._key def _generate_object_key(self, object):