3
T'ícG ã @ s. d Z ddlmZmZmZ G dd dejZdS )z#Reader for existing document trees.é )ÚreadersÚutilsÚ
transformsc @ s$ e Zd ZdZdZdZd Zdd ZdS )
ÚReadera
Adapt the Reader API for an existing document tree.
The existing document tree must be passed as the ``source`` parameter to
the `docutils.core.Publisher` initializer, wrapped in a
`docutils.io.DocTreeInput` object::
pub = docutils.core.Publisher(
..., source=docutils.io.DocTreeInput(document), ...)
The original document settings are overridden; if you want to use the
settings of the original document, pass ``settings=document.settings`` to
the Publisher call above.
Údoctreezdoctree readerr c C sD | j | _tj| j| j_| j| j_tj| jjdd| jj| j_ dS )zp
No parsing to do; refurbish the document tree instead.
Overrides the inherited method.
ÚsourceÚ N)
ÚinputÚdocumentr ZTransformerZtransformerÚsettingsr Znew_reporterÚgetZreporter)Úself© r ú</tmp/pip-build-gk9425m9/docutils/docutils/readers/doctree.pyÚparse s