403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.37
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/transforms/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

N=&b���t�dZdZddlmZmZmZGd�de��ZGd�d��ZGd�d	e��Zd
S)a�
This package contains modules for standard tree transforms available
to Docutils components. Tree transforms serve a variety of purposes:

- To tie up certain syntax-specific "loose ends" that remain after the
  initial parsing of the input plaintext. These transforms are used to
  supplement a limited syntax.

- To automate the internal linking of the document tree (hyperlink
  references, footnote references, etc.).

- To extract useful information from the document tree. These
  transforms may be used to construct (for example) indexes and tables
  of contents.

Each transform is an optional step that a Docutils component may
choose to perform on the parsed document.
�reStructuredText�)�	languages�ApplicationError�
TransformSpecc��eZdZdS)�TransformErrorN)�__name__�
__module__�__qualname__���>/usr/lib/python3/dist-packages/docutils/transforms/__init__.pyrrs�������Dr
rc�&�eZdZdZdZ	dd�Zd�ZdS)�	Transformz;
    Docutils transform component abstract base class.
    Nc�x�||_	||_	tj|jj|j��|_dS)zA
        Initial setup for in-place document transforms.
        N)�document�	startnoder�get_language�settings�
language_code�reporter�language)�selfrrs   r�__init__zTransform.__init__+sF��
!��
�-�"���	�"�.���+�X�->�@�@��
�5�5r
c� �td���)z5Override to apply the transform to the document tree.z"subclass must override this method)�NotImplementedError)r�kwargss  r�applyzTransform.apply<s��!�"F�G�G�Gr
�N)r	r
r�__doc__�default_priorityrrrr
rrr"sQ����������I�6�6�6�6�"H�H�H�H�Hr
rc�@�eZdZdZd�Zd
d�Zd�Zd
d�Zd�Zd�Z	d	�Z
dS)�Transformerz�
    Stores transforms (`Transform` classes) and applies them to document
    trees.  Also keeps track of components by component type name.
    c�t�g|_	g|_	||_	g|_	d|_	i|_	d|_dS)Nr)�
transforms�unknown_reference_resolversr�applied�sorted�
components�serialno)rrs  rrzTransformer.__init__HsX�����	�,.��(�I� ��
�J����3����2����	.���
�	�	r
Nc��|�|j}|�|��}|j�||d|f��d|_dS)a+
        Store a single transform.  Use `priority` to override the default.
        `kwargs` is a dictionary whose contents are passed as keyword
        arguments to the `apply` method of the transform.  This can be used to
        pass application-specific data to the transform instance.
        Nr)r!�get_priority_stringr%�appendr()r�transform_class�priorityr�priority_strings     r�
add_transformzTransformer.add_transformbsV����&�7�H��2�2�8�<�<������
�o�t�V�<�	>�	>�	>�����r
c��|D]:}|�|j��}|j�||dif���;d|_dS)z3Store multiple transforms, with default priorities.Nr)r,r!r%r-r()r�transform_listr.r0s    r�add_transformszTransformer.add_transformspsb��-�	>�	>�O�"�6�6��0�2�2�O��O�"�"� �/�4��<�
>�
>�
>�
>�����r
c��|j}|�|j}|�|��}|j�|||if��d|_dS)z4Store a transform with an associated `pending` node.Nr)�	transformr!r,r%r-r()r�pendingr/r.r0s     r�add_pendingzTransformer.add_pendingys\��!�+����&�7�H��2�2�8�<�<������
�o�w��;�	=�	=�	=�����r
c�:�|xjdz
c_d||jfzS)z�
        Return a string, `priority` combined with `self.serialno`.

        This ensures FIFO order on transforms with identical priority.
        �z	%03d-%03d)r*)rr/s  rr,zTransformer.get_priority_string�s&��	
�
�
���
�
��h��
�6�6�6r
c�L�|D];}|��|�|�����||j|j<�<d|_g}|D]}|�|j���t	d�|D����}|j�d�|D����dS)z�
        Store each component's default transforms, with default priorities.
        Also, store components by type name in a mapping for later lookup.
        Nrc3�(K�|]
}|j|fV��dSr)r/��.0�fs  r�	<genexpr>z7Transformer.populate_from_components.<locals>.<genexpr>�sD���� F� F�$%�"#��Q�� F� F� F� F� F� Fr
c3�&K�|]}|dV��
dS)r:Nrr=s  rr@z7Transformer.populate_from_components.<locals>.<genexpr>�s&����/M�/M���!��/M�/M�/M�/M�/M�/Mr
)r4�get_transformsr)�component_typer(�extendr&)rr)�	componentr&�i�decorated_lists      r�populate_from_componentsz$Transformer.populate_from_components�s���
$�	B�	B�I�� �����	� 8� 8� :� :�;�;�;�8A�D�O�I�4�5�5����')�#��	N�	N�A�'�.�.�q�/L�M�M�M�M�� F� F�)D� F� F� F�F�F���(�/�/�/M�/M�n�/M�/M�/M�M�M�M�M�Mr
c��|jj�|jj��|jr�|js9|j���|j���d|_|j���\}}}}||j|���}|j	di|��|j
�||||f��|j��dSdS)z6Apply all of the stored transforms, in priority order.r:)rNr)rr�attach_observer�note_transform_messager%r(�sort�reverse�poprr'r-)rr/r.r7rr6s      r�apply_transformszTransformer.apply_transforms�s����
��.�.��M�0�	2�	2�	2��o�		N��;�
 ���$�$�&�&�&���'�'�)�)�)����9=��9L�9L�9N�9N�6�H�o�w��'���
��I�I�I�I��I�O�%�%�f�%�%�%��L����?�G�V� L�M�M�M��o�		N�		N�		N�		N�		Nr
r)r	r
rr rr1r4r8r,rHrOrr
rr#r#As���������
���4�����������7�7�7�N�N�N�*
N�
N�
N�
N�
Nr
r#N)	r �
__docformat__�docutilsrrrrrr#rr
r�<module>rRs���
��&#�
�@�?�?�?�?�?�?�?�?�?�	�	�	�	�	�%�	�	�	�H�H�H�H�H�H�H�H�>mN�mN�mN�mN�mN�-�mN�mN�mN�mN�mNr

Youez - 2016 - github.com/yon3zu
LinuXploit