cwvreg.py
branchstable
changeset 6046 3fd4a34c4a09
parent 6037 1b4ea3ebdf80
child 6069 d7cef08aad27
child 6152 6824f8b61098
--- a/cwvreg.py	Fri Jul 30 13:16:01 2010 +0200
+++ b/cwvreg.py	Fri Jul 30 13:18:08 2010 +0200
@@ -310,11 +310,10 @@
     @cached
     def parent_classes(self, etype):
         if etype == 'Any':
-            return [self.etype_class('Any')]
-        eschema = self.schema.eschema(etype)
-        parents = [self.etype_class(e.type) for e in eschema.ancestors()]
-        parents.append(self.etype_class('Any'))
-        return parents
+            return (), self.etype_class('Any')
+        parents = tuple(self.etype_class(e.type)
+                        for e in self.schema.eschema(etype).ancestors())
+        return parents, self.etype_class('Any')
 
     @cached
     def etype_class(self, etype):