--- 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):