Explicitely ignore the routines when scanning a class

This commit is contained in:
Christophe de Vienne 2013-04-14 20:37:36 +02:00
parent f510026ff7
commit 0fd4d50279

View File

@ -435,6 +435,8 @@ def inspect_class(class_):
for name, attr in inspect.getmembers(class_, iswsattr):
if name.startswith('_'):
continue
if inspect.isroutine(attr):
continue
if isinstance(attr, wsattr):
attrdef = attr