diff options
author | Georg Brandl <georg@python.org> | 2015-03-08 16:28:23 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-03-08 16:28:23 +0100 |
commit | 18b6843696a9f9b46f98a77a4e62825c193ae73a (patch) | |
tree | 5c7e2d6fad4777dc7e56126bcb06723742cea631 /sphinx/apidoc.py | |
parent | 8bc5823724e58bc75d165adc77fb78525d0256f2 (diff) | |
download | sphinx-git-18b6843696a9f9b46f98a77a4e62825c193ae73a.tar.gz |
pep8 fixes
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r-- | sphinx/apidoc.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/apidoc.py b/sphinx/apidoc.py index 807b03fca..ad5b8d04a 100644 --- a/sphinx/apidoc.py +++ b/sphinx/apidoc.py @@ -112,8 +112,8 @@ def create_package_file(root, master_package, subroot, py_files, opts, subs): text += '\n' submods = [path.splitext(sub)[0] for sub in py_files - if not shall_skip(path.join(root, sub), opts) - and sub != INITPY] + if not shall_skip(path.join(root, sub), opts) and + sub != INITPY] if submods: text += format_heading(2, 'Submodules') if opts.separatemodules: @@ -212,8 +212,8 @@ def recurse_tree(rootpath, excludes, opts): exclude_prefixes = ('.',) else: exclude_prefixes = ('.', '_') - subs[:] = sorted(sub for sub in subs if not sub.startswith(exclude_prefixes) - and not is_excluded(path.join(root, sub), excludes)) + subs[:] = sorted(sub for sub in subs if not sub.startswith(exclude_prefixes) and + not is_excluded(path.join(root, sub), excludes)) if is_pkg: # we are in a package with something to document |