[Epydoc-commits] SF.net SVN: epydoc: [1301] trunk/epydoc/src/epydoc/markup/restructuredtext.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-23 07:03:41
|
Revision: 1301 Author: edloper Date: 2006-08-23 00:03:09 -0700 (Wed, 23 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1301&view=rev Log Message: ----------- - Made ParsedRstDocstring's pickle-able. Modified Paths: -------------- trunk/epydoc/src/epydoc/markup/restructuredtext.py Modified: trunk/epydoc/src/epydoc/markup/restructuredtext.py =================================================================== --- trunk/epydoc/src/epydoc/markup/restructuredtext.py 2006-08-23 05:25:13 UTC (rev 1300) +++ trunk/epydoc/src/epydoc/markup/restructuredtext.py 2006-08-23 07:03:09 UTC (rev 1301) @@ -80,6 +80,8 @@ from docutils.parsers.rst import directives import docutils.nodes import docutils.transforms.frontmatter +import docutils.transforms +import docutils.utils from epydoc.compat import * # Backwards compatibility from epydoc.markup import * @@ -145,6 +147,12 @@ @type document: L{docutils.nodes.document} """ self._document = document + + # The default document reporter and transformer are not + # pickle-able; so replace them with stubs that are. + document.reporter = docutils.utils.Reporter( + document.reporter.source, 'SEVERE', 'SEVERE', '') + document.transformer = docutils.transforms.Transformer(document) def split_fields(self, errors=None): # Inherit docs This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |