From 7d2d8ae9d179beb04a7eebe90792eeb496b9db9d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 25 Aug 2008 05:08:14 +0000 Subject: 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 --- pym/portage/dbapi/vartree.py | 5 ----- 1 file changed, 5 deletions(-) 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): -- cgit v1.2.3-1-g7c22