apidoc: Fix local variable is not initialized

This commit is contained in:
Takeshi KOMIYA 2018-03-21 14:30:53 +09:00
parent a7aac6956d
commit 75eccc86d7

View File

@ -197,6 +197,7 @@ def shall_skip(module, opts, excludes=[]):
# Are we a package (here defined as __init__.py, not the folder in itself)
if os.path.basename(module) == INITPY:
# Yes, check if we have any non-excluded modules at all here
all_skipped = True
basemodule = path.dirname(module)
for module in glob.glob(path.join(basemodule, '*.py')):
if not is_excluded(path.join(basemodule, module), excludes):