| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/docutils/readers/__pycache__/ |
Upload File : |
a
OԼaG � @ s. d Z ddlmZmZmZ G dd� dej�ZdS )z#Reader for existing document trees.� )�readers�utils�
transformsc @ s$ e Zd ZdZdZdZdZdd� 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)r c C sD | 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)
�inputZdocumentr ZTransformerZtransformerZsettingsr Znew_reporter�getZreporter)�self� r �</usr/lib/python3.9/site-packages/docutils/readers/doctree.py�parse s
�zReader.parseN)�__name__�
__module__�__qualname__�__doc__Z supportedZconfig_sectionZconfig_section_dependenciesr
r r r r r
s
r N)r Zdocutilsr r r ZReReaderr r r r r �<module> s