Commit 88fed3cc authored by payno's avatar payno
Browse files

[utils] rework '_check_module_for_class'

parent d69ab181
......@@ -62,7 +62,7 @@ def _check_module_for_class(module, depth=0):
if inspect.ismodule(m[1]):
if inspect.isclass(m[1]):
classes.append(m[1])
elif hasattr(m[1], '__path__'):
for importer, modname, ispkg in pkgutil.iter_modules(
m[1].__path__):
module_name = module.__name__
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment