diff options
author | Georg Brandl <georg@python.org> | 2009-09-03 18:00:11 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-09-03 18:00:11 +0200 |
commit | e9fc8d890ce568d279e40da28f6b2f3d3f3ee75f (patch) | |
tree | fdcf452e1e58df86a3cfa6230284098916f22f15 /sphinx/ext/autodoc.py | |
parent | eff2bdd5151573287e226b6d5ad75b133a738d91 (diff) | |
download | sphinx-git-e9fc8d890ce568d279e40da28f6b2f3d3f3ee75f.tar.gz |
Really fix the problem of keeping all pgen2 parser nodes in memory.
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index ea9a8f17d..988a82e02 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -620,8 +620,9 @@ class Documenter(object): # try to also get a source code analyzer for attribute docs try: self.analyzer = ModuleAnalyzer.for_module(self.real_modname) - # parse right now, to get PycodeErrors on parsing - self.analyzer.parse() + # parse right now, to get PycodeErrors on parsing (results will + # be cached anyway) + self.analyzer.find_attr_docs() except PycodeError, err: # no source file -- e.g. for builtin and C modules self.analyzer = None |