summaryrefslogtreecommitdiff
path: root/sphinx/apidoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-10-09 23:09:57 +0200
committerGeorg Brandl <georg@python.org>2011-10-09 23:09:57 +0200
commitf67f7844aa0fd24504db04e56282b8506bfbfb68 (patch)
treea22fe7ebe1e7364ee1582f543a2e1abb04198817 /sphinx/apidoc.py
parent07c872d8e80e1998a696b4975db9a61451a53c5c (diff)
downloadsphinx-f67f7844aa0fd24504db04e56282b8506bfbfb68.tar.gz
Satisfy "make check".
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r--sphinx/apidoc.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/sphinx/apidoc.py b/sphinx/apidoc.py
index 24c56fbf..7e7f341f 100644
--- a/sphinx/apidoc.py
+++ b/sphinx/apidoc.py
@@ -8,9 +8,9 @@
creates a modules index (named modules.<suffix>).
This is derived from the "sphinx-autopackage" script, which is:
- Copyright 2008 Société des arts technologiques (SAT), http://www.sat.qc.ca/.
+ Copyright 2008 Société des arts technologiques (SAT), http://www.sat.qc.ca/
- :copyright: 2007-2011 by the Sphinx team, see AUTHORS.
+ :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import os
@@ -172,7 +172,8 @@ 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)):
+ if subs or len(py_files) > 1 or not \
+ shall_skip(path.join(root, INITPY)):
subpackage = root[len(rootpath):].lstrip(path.sep).\
replace(path.sep, '.')
create_package_file(root, root_package, subpackage,
@@ -251,7 +252,8 @@ Note: By default this script will not overwrite already created files.""")
help='Generate a full project with sphinx-quickstart')
parser.add_option('-H', '--doc-project', action='store', dest='header',
help='Project name (default: root module name)')
- parser.add_option('-A', '--doc-author', action='store', dest='author', type='str',
+ parser.add_option('-A', '--doc-author', action='store', dest='author',
+ type='str',
help='Project author(s), used when --full is given')
parser.add_option('-V', '--doc-version', action='store', dest='version',
help='Project version, used when --full is given')