3

T'ícGã@s.dZddlmZmZmZGdd„dejƒZdS)z#Reader for existing document trees.é)ÚreadersÚutilsÚ
transformsc@s$eZdZdZdZdZd	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 readerrcCsD|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ÚdocumentrZTransformerZtransformerÚsettingsrZnew_reporterÚgetZreporter)Úself©rú</tmp/pip-build-gk9425m9/docutils/docutils/readers/doctree.pyÚparse s

zReader.parseN)r)r)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	supportedZconfig_sectionZconfig_section_dependenciesrrrrrr
s
rN)rZdocutilsrrrZReReaderrrrrrÚ<module>s