summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-03 16:39:30 +0200
committerGeorg Brandl <georg@python.org>2014-09-03 16:39:30 +0200
commitfc680f1e25959ccc0e210dd6d5070dca360208c7 (patch)
tree4a5e542712eb5e38e0601a337e4b64ad5f6a91db /sphinx/ext/autodoc.py
parentb6594d18d1923c6f9858b3adce9fccf883fe8023 (diff)
downloadsphinx-git-fc680f1e25959ccc0e210dd6d5070dca360208c7.tar.gz
Return version from setup() for all sphinx.ext extensions.
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r--sphinx/ext/autodoc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index 918d6549a..5b014d0d5 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -22,6 +22,7 @@ from docutils import nodes
from docutils.utils import assemble_option_dict
from docutils.statemachine import ViewList
+import sphinx
from sphinx.util import rpartition, force_decode
from sphinx.locale import _
from sphinx.pycode import ModuleAnalyzer, PycodeError
@@ -1503,6 +1504,8 @@ def setup(app):
app.add_event('autodoc-process-signature')
app.add_event('autodoc-skip-member')
+ return sphinx.__version__
+
class testcls:
"""test doc string"""