403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/docutils/writers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/docutils/writers/__pycache__/__init__.cpython-311.pyc
�

N=&b�����dZdZddlmZddlZddlmZmZddlmZGd�de��Z	Gd	�d
e	��Z
idd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d!�d#d$d%��Zd&�ZdS)'z0
This package contains Docutils Writer modules.
�reStructuredText�)�
import_moduleN)�	languages�	Component)�	universalc�P�eZdZdZdZdZd�ZdZ	dZ	dZ		dZ
	d�Zd�Zd�Z
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.
    �writer�writersc�r�tj|��tjtjtjgzS�N)r�get_transformsr�Messages�FilterMessages�StripClassesAndElements��selfs �;/usr/lib/python3/dist-packages/docutils/writers/__init__.pyrzWriter.get_transforms!s1���'��-�-��%��+��4�16�6�	6�Nc��i|_dSr
)�partsrs r�__init__zWriter.__init__5s����
�	�	rc���||_tj|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.
        )�documentr�get_language�settings�
language_code�reporter�language�destination�	translate�write�output)rrr s   rr"zWriter.write>sa��!��
�!�.���+������
�'�����������%�%�d�k�2�2�2rc� �td���)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 method)�NotImplementedErrorrs rr!zWriter.translatePs��"�"F�G�G�Grc�~�|j|jd<|jjj|jd<t
j|jd<dS)z<Assemble the `self.parts` dictionary.  Extend in subclasses.�whole�encoding�versionN)r#rrr�output_encoding�docutils�__version__rs r�assemble_partszWriter.assemble_parts^s9��"�k��
�7��!%��!7�!G��
�:�� (� 4��
�9���r)�__name__�
__module__�__qualname__�__doc__�component_type�config_sectionrrr#rr rr"r!r-�rrr	r	s����������N��N�6�6�6��H�C�
�F�4��H�;��K�����3�3�3�$H�H�H�5�5�5�5�5rr	c��eZdZdZd�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`.
    c�*�tj|��Sr
)rrrs rrzUnfilteredWriter.get_transformsos���'��-�-�-rN)r.r/r0r1rr4rrr6r6es-��������.�.�.�.�.rr6�html�	html4css1�html4�xhtml10�html5�html5_polyglot�xhtml�s5�s5_html�latex�latex2e�xelatex�xetex�luatex�lualatex�odf�odf_odt�odt�ooffice�
openoffice�libreoffice�pprint�	pseudoxml�pformat�rlpdf�docutils_xml)�pdf�xmlc�&�|���}t�||��}	td|z��}nH#t$r;	t|��}n'#t$r}t	d|�d|�����d}~wwxYwYnwxYw|jS)z6Return the Writer class from the `writer_name` module.zdocutils.writers.zWriter "z
" not found. N)�lower�_writer_aliases�getr�ImportErrorr	)�writer_name�name�module�errs    r�get_writer_classr]�s��������D����t�T�*�*�D�J��2�4�7�8�8�����J�J�J�	J�"�4�(�(�F�F���	J�	J�	J��H��H�H�3�H�H�I�I�I�����	J����
�F�J����
�=�s5�A�
B	�A�B	�
B�)A>�>B�B	�B	)
r1�
__docformat__�	importlibrr+rr�docutils.transformsrr	r6rVr]r4rr�<module>ras���
��#�
�#�#�#�#�#�#�����)�)�)�)�)�)�)�)�)�)�)�)�)�)�P5�P5�P5�P5�P5�Y�P5�P5�P5�f.�.�.�.�.�v�.�.�.�"��k��
�{�������	�
����I�
��y���������'���Y���Y������I���Y�� ��!�"��#�$�
�'����,����r

Youez - 2016 - github.com/yon3zu
LinuXploit