summaryrefslogtreecommitdiff
path: root/sphinx/ext/apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-21 14:30:53 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-21 14:36:16 +0900
commit75eccc86d7c9460f7aea478831342ea6aa1c91fe (patch)
treec6968522be1bfd139615a94cccaabb931dff4b65 /sphinx/ext/apidoc.py
parenta7aac6956d795e4a5aebf61a2a0d09920a58772f (diff)
downloadsphinx-git-75eccc86d7c9460f7aea478831342ea6aa1c91fe.tar.gz
apidoc: Fix local variable is not initialized
Diffstat (limited to 'sphinx/ext/apidoc.py')
-rw-r--r--sphinx/ext/apidoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py
index 3ea563d50..921152ef1 100644
--- a/sphinx/ext/apidoc.py
+++ b/sphinx/ext/apidoc.py
@@ -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):