summaryrefslogtreecommitdiff
path: root/sphinx/ext
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-10 20:34:26 +0100
committerGeorg Brandl <georg@python.org>2009-01-10 20:34:26 +0100
commit383cfe40faf164d76eb75bb1c543e52fa9f28397 (patch)
tree54967968bdfdda9cfd5266d269297eb439d4ee37 /sphinx/ext
parent673bcf9c68066f8acb9b8e1ac0458e8b127ba735 (diff)
downloadsphinx-383cfe40faf164d76eb75bb1c543e52fa9f28397.tar.gz
Raise PycodeError directly on parsing.
Diffstat (limited to 'sphinx/ext')
-rw-r--r--sphinx/ext/autodoc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index be3e3f0f..708ab414 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -380,6 +380,8 @@ class RstGenerator(object):
# try to also get a source code analyzer for attribute docs
try:
analyzer = ModuleAnalyzer.for_module(mod)
+ # parse right now, to get PycodeErrors on parsing
+ analyzer.parse()
except PycodeError, err:
# no source file -- e.g. for builtin and C modules
analyzer = None