Your IP : 216.73.216.213
:�pDG � @ s? d Z d d l m Z m Z m Z Gd d � d e j � Z d S)z#Reader for existing document trees.� )�readers�utils�
transformsc @ s4 e Z d Z d Z d Z d Z d Z d d � Z d S)
�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 | _ t j | j � | j _ | j | j _ t j | j j d d � | j j � | j _ d S)zp
No parsing to do; refurbish the document tree instead.
Overrides the inherited method.
�source� N)
�inputZdocumentr ZTransformerZtransformerZsettingsr Znew_reporter�getZreporter)�self� r �I/opt/alt/python35/lib/python3.5/site-packages/docutils/readers/doctree.py�parse s
zReader.parseN)r )r )�__name__�
__module__�__qualname__�__doc__Z supportedZconfig_sectionZconfig_section_dependenciesr r r r r
r
s
r N)r �docutilsr r r ZReReaderr r r r r
�<module> s