Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11474 - main/trunk/pym/portage/dbapi
Date: Mon, 25 Aug 2008 05:08:18
Message-Id: E1KXUJL-0004mI-BO@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-08-25 05:08:14 +0000 (Mon, 25 Aug 2008)
3 New Revision: 11474
4
5 Modified:
6 main/trunk/pym/portage/dbapi/vartree.py
7 Log:
8 Revert recent changes to _ObjectKey.__eq__() since it's probably a bug if
9 the wrong type is compared for equality anyway.
10
11
12 Modified: main/trunk/pym/portage/dbapi/vartree.py
13 ===================================================================
14 --- main/trunk/pym/portage/dbapi/vartree.py 2008-08-24 21:14:20 UTC (rev 11473)
15 +++ main/trunk/pym/portage/dbapi/vartree.py 2008-08-25 05:08:14 UTC (rev 11474)
16 @@ -169,11 +169,6 @@
17 return hash(self._key)
18
19 def __eq__(self, other):
20 - if not isinstance(other, self.__class__):
21 - # Can't safely return True in this case since
22 - # if there is a hash collision then __eq__ needs
23 - # to be relied upon for correct dict behavior.
24 - return False
25 return self._key == other._key
26
27 def _generate_object_key(self, object):