projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5474659
)
Revert recent changes to _ObjectKey.__eq__() since it's probably a bug if
author
Zac Medico
<zmedico@gentoo.org>
Mon, 25 Aug 2008 05:08:14 +0000
(
05:08
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 25 Aug 2008 05:08:14 +0000
(
05:08
-0000)
the wrong type is compared for equality anyway.
svn path=/main/trunk/; revision=11474
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 2c030c13c73766f8e0b82f528d0cae769fb62dc6..8d5d33d35528484181bc1f68748b6a55c50cee36 100644
(file)
--- 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):