summaryrefslogtreecommitdiff
path: root/sphinx/pycode
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-07-02 19:41:25 +0200
committerGeorg Brandl <georg@python.org>2009-07-02 19:41:25 +0200
commit6f9e3f76ba58c73ea2bd39dbc5d490eb58ad9346 (patch)
tree51faa35c402e9ffb4ed28d92abb4add349bdde9b /sphinx/pycode
parent93a5dc2addd18a612bb8f791846a472a1635d966 (diff)
downloadsphinx-6f9e3f76ba58c73ea2bd39dbc5d490eb58ad9346.tar.gz
Remove parsetree after collecting attributes.
Diffstat (limited to 'sphinx/pycode')
-rw-r--r--sphinx/pycode/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/pycode/__init__.py b/sphinx/pycode/__init__.py
index de1c3dbe..1187b6a4 100644
--- a/sphinx/pycode/__init__.py
+++ b/sphinx/pycode/__init__.py
@@ -234,6 +234,7 @@ class ModuleAnalyzer(object):
attr_visitor = AttrDocVisitor(number2name, scope, self.encoding)
attr_visitor.visit(self.parsetree)
self.attr_docs = attr_visitor.collected
+ self.parsetree = None
return attr_visitor.collected
def find_tags(self):