HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-31-18-78 6.17.0-1017-aws #17~24.04.1-Ubuntu SMP Tue May 26 21:09:53 UTC 2026 aarch64
User: ubuntu (1000)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/docutils/readers/__pycache__/doctree.cpython-312.pyc
�

�ddG��F�dZddlmZmZmZGd�dej
�Zy)z#Reader for existing document trees.�)�readers�utils�
transformsc�"�eZdZdZdZdZdZd�Zy)�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 reader)rc�^�|j|_tj|j�|j_|j
|j_t
j|jjdd�|jj
�|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��M�M���h��+�T�]�]�-C�-C�"E��
�
��N)�__name__�
__module__�__qualname__�__doc__�	supported�config_section�config_section_dependenciesr�rrrr
s��
��I�%�N�".��ErrN)r�docutilsrrr�ReReaderrrrr�<module>r"s$��
*�/�/�$E�W�
�
�$Er