summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-25 05:08:14 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-25 05:08:14 +0000
commit7d2d8ae9d179beb04a7eebe90792eeb496b9db9d (patch)
treec2eb8c8e7839f8934e96f6eca258f0a50479ef78
parent5474659211db6936a4c1224c8e0e891c26f3f190 (diff)
downloadportage-7d2d8ae9d179beb04a7eebe90792eeb496b9db9d.tar.gz
portage-7d2d8ae9d179beb04a7eebe90792eeb496b9db9d.tar.bz2
portage-7d2d8ae9d179beb04a7eebe90792eeb496b9db9d.zip
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
-rw-r--r--pym/portage/dbapi/vartree.py5
1 files changed, 0 insertions, 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):