Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11469 - main/branches/prefix/pym/portage/dbapi
Date: Sun, 24 Aug 2008 17:47:34
Message-Id: E1KXJgY-000159-VH@stork.gentoo.org
1 Author: grobian
2 Date: 2008-08-24 17:47:09 +0000 (Sun, 24 Aug 2008)
3 New Revision: 11469
4
5 Modified:
6 main/branches/prefix/pym/portage/dbapi/vartree.py
7 Log:
8 Apply the same string fix to the LinkageMapMachO... this situation starts to become very unhealthy
9
10 Modified: main/branches/prefix/pym/portage/dbapi/vartree.py
11 ===================================================================
12 --- main/branches/prefix/pym/portage/dbapi/vartree.py 2008-08-24 17:39:14 UTC (rev 11468)
13 +++ main/branches/prefix/pym/portage/dbapi/vartree.py 2008-08-24 17:47:09 UTC (rev 11469)
14 @@ -610,6 +610,8 @@
15
16 """Helper class used as _obj_properties keys for objects."""
17
18 + __slots__ = ("__weakref__", "_key")
19 +
20 def __init__(self, object):
21 """
22 This takes a path to an object.
23 @@ -624,7 +626,11 @@
24 return hash(self._key)
25
26 def __eq__(self, other):
27 - return self._key == other._key
28 + if isinstance(other, self.__class__):
29 + other_key = other._key
30 + else:
31 + other_key = other
32 + return self._key == other_key
33
34 def _generate_object_key(self, object):
35 """