diff options
author | Georg Brandl <georg@python.org> | 2014-09-21 20:21:43 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-21 20:21:43 +0200 |
commit | df53ece2f7b9a79133d7f52a64c5f2795fda95a4 (patch) | |
tree | 1313cfff9faca1aef4827bb3c8b533479c05069f /sphinx/apidoc.py | |
parent | c5cc2a8cf9edc00ff0ed695e8a0b5c98474c0abf (diff) | |
download | sphinx-git-df53ece2f7b9a79133d7f52a64c5f2795fda95a4.tar.gz |
Minor PEP8 cleanup.
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 f716286c7..7b1a96d25 100644 --- a/sphinx/apidoc.py +++ b/sphinx/apidoc.py @@ -88,7 +88,7 @@ def create_module_file(package, module, opts): text = format_heading(1, '%s module' % module) else: text = '' - #text += format_heading(2, ':mod:`%s` Module' % module) + # text += format_heading(2, ':mod:`%s` Module' % module) text += format_directive(module, package) write_file(makename(package, module), text, opts) @@ -173,7 +173,7 @@ def shall_skip(module, opts): # skip if it has a "private" name and this is selected filename = path.basename(module) if filename != '__init__.py' and filename.startswith('_') and \ - not opts.includeprivate: + not opts.includeprivate: return True return False @@ -218,7 +218,7 @@ def recurse_tree(rootpath, excludes, opts): if is_pkg: # we are in a package with something to document if subs or len(py_files) > 1 or not \ - shall_skip(path.join(root, INITPY), opts): + shall_skip(path.join(root, INITPY), opts): subpackage = root[len(rootpath):].lstrip(path.sep).\ replace(path.sep, '.') create_package_file(root, root_package, subpackage, @@ -318,7 +318,7 @@ Note: By default this script will not overwrite already created files.""") (opts, args) = parser.parse_args(argv[1:]) if opts.show_version: - print('Sphinx (sphinx-apidoc) %s' % __version__) + print('Sphinx (sphinx-apidoc) %s' % __version__) return 0 if not args: |