Don't initialize __weakref__ in the DepPriority constructor.
authorZac Medico <zmedico@gentoo.org>
Wed, 18 Oct 2006 10:35:56 +0000 (10:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 18 Oct 2006 10:35:56 +0000 (10:35 -0000)
svn path=/main/trunk/; revision=4750

bin/emerge

index 47a1f32fe398714e9d65bd5191f6ac2b92a50ec3..938a55f5fa90cabe77c8f1179aed37c055537bac 100755 (executable)
@@ -661,6 +661,8 @@ class DepPriority(object):
        MIN    = -4
        def __init__(self, **kwargs):
                for myattr in self.__slots__:
+                       if myattr == "__weakref__":
+                               continue
                        myvalue = kwargs.get(myattr, False)
                        setattr(self, myattr, myvalue)
        def __int__(self):