| 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/transforms/__pycache__/ |
Upload File : |
a
OԼa � @ sX d Z dZddlmZ ddlmZmZ G dd� de�ZG dd� de�ZG d d
� d
e�Z dS )z
Miscellaneous transforms.
ZreStructuredText� )�nodes)� Transform�TransformErrorc @ s e Zd ZdZdZdd� ZdS )�CallBacka�
Inserts a callback into a document. The callback is called when the
transform is applied, which is determined by its priority.
For use with `nodes.pending` elements. Requires a ``details['callback']``
entry, a bound method or function which takes one parameter: the pending
node. Other data can be stored in the ``details`` attribute or in the
object hosting the callback method.
i� c C s$ | j }|jd |� |j�|� d S )N�callback)� startnode�details�parent�remove)�self�pending� r
�</usr/lib/python3.9/site-packages/docutils/transforms/misc.py�apply s zCallBack.applyN��__name__�
__module__�__qualname__�__doc__�default_priorityr r
r
r
r r s
r c @ s e Zd ZdZdZdd� ZdS )�ClassAttributez|
Move the "class" attribute specified in the "pending" node into the
immediately following non-comment element.
�� c C s� | j }|j}|}|r�t|�|�d t|��D ]L}|| }t|tj�s,t|tj�rRq,|d |j d 7 <