Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/docutils/readers/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/docutils/readers/__pycache__/doctree.cpython-37.pyc

B

:�pDG�@s.dZddlmZmZmZGdd�dej�ZdS)z#Reader for existing document trees.�)�readers�utils�
transformsc@s$eZdZdZdZdZdZdd�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.
    )Zdoctreezdoctree reader)rcCsD|j|_t�|j�|j_|j|j_t�|j�dd�|jj�|j_	dS)zp
        No parsing to do; refurbish the document tree instead.
        Overrides the inherited method.
        �source�N)
�inputZdocumentrZTransformerZtransformerZsettingsrZnew_reporter�getZreporter)�self�r�I/opt/alt/python37/lib/python3.7/site-packages/docutils/readers/doctree.py�parse s

zReader.parseN)�__name__�
__module__�__qualname__�__doc__Z	supportedZconfig_sectionZconfig_section_dependenciesr
rrrrr
s
rN)r�docutilsrrrZReReaderrrrrr�<module>s