Commits

Anonymous committed 1243e03

rename ClassInfo.__slots__ to attrNames: it's an old style class so __slots__ has no effect, it's only for introspection here

Comments (0)

Files changed (1)

pyobjc/Lib/PyObjCTools/NibClassBuilder.py

 
 class ClassInfo:
 
-    __slots__ = ("nibs", "name", "super", "actions", "outlets")
+    attrNames = ("nibs", "name", "super", "actions", "outlets")
 
     def __repr__(self):
         items = self.__dict__.items()
         self.actions = mergeLists(self.actions, other.actions)
 
     def __cmp__(self, other):
-        s = [getattr(self, x) for x in self.__slots__]
-        o = [getattr(other, x) for x in self.__slots__]
+        s = [getattr(self, x) for x in self.attrNames]
+        o = [getattr(other, x) for x in self.attrNames]
         return cmp(s, o)