
    ddG                     F    d Z ddlmZmZmZ  G d dej
                        Zy)z#Reader for existing document trees.    )readersutils
transformsc                   "    e Zd ZdZdZdZdZd Zy)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.
    )doctreezdoctree reader)r   c                 ^   | j                   | _        t        j                  | j                        | j                  _        | j
                  | j                  _        t        j                  | j                  j                  dd      | j                  j
                        | j                  _	        y)zp
        No parsing to do; refurbish the document tree instead.
        Overrides the inherited method.
        source N)
inputdocumentr   Transformertransformersettingsr   new_reportergetreporter)selfs    :/usr/lib/python3/dist-packages/docutils/readers/doctree.pyparsezReader.parse    sv    
 

 %/$:$:4==$I!!% "'!3!3MMh+T]]-C-C"E    N)__name__
__module____qualname____doc__	supportedconfig_sectionconfig_section_dependenciesr    r   r   r   r   
   s     I%N".Er   r   N)r   docutilsr   r   r   ReReaderr   r   r   r   <module>r"      s$   
 * / /$EW $Er   