summaryrefslogtreecommitdiff
path: root/sphinx/ext/apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-05-14 01:04:45 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-05-14 01:04:45 +0900
commitbc19cf72c9cbdae03537f24e473fd0c17090047e (patch)
tree2f832d7b0b74efad4f6db2c98f91f582b6799c52 /sphinx/ext/apidoc.py
parent0fe8e1fc9b014868aa3225dc618069ac70cfe6a0 (diff)
parent981e044bd512be29e7f5ac664798b965960ed39d (diff)
downloadsphinx-git-bc19cf72c9cbdae03537f24e473fd0c17090047e.tar.gz
Merge branch '1.7'
Diffstat (limited to 'sphinx/ext/apidoc.py')
-rw-r--r--sphinx/ext/apidoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py
index ad024ea54..8a7c68402 100644
--- a/sphinx/ext/apidoc.py
+++ b/sphinx/ext/apidoc.py
@@ -202,8 +202,8 @@ def shall_skip(module, opts, excludes=[]):
# 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):
+ for submodule in glob.glob(path.join(basemodule, '*.py')):
+ if not is_excluded(path.join(basemodule, submodule), excludes):
# There's a non-excluded module here, we won't skip
all_skipped = False
if all_skipped: