| Server IP : 167.99.254.82 / Your IP : 216.73.216.229 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/docutils/transforms/__pycache__/ |
Upload File : |
o
1�_�+ � @ s� d Z dZddlZddlZddlZddlZddlmZmZm Z ddlm
Z
mZ ddlm
Z
mZ ddlmZmZmZ G dd � d e
�ZG d
d� de
�ZG dd
� d
e
�ZG dd� de
�ZG dd� dej�ZdZddd�ZdS )z�
Transforms for PEP processing.
- `Headers`: Used to transform a PEP's initial RFC-2822 header. It remains a
field list, but some entries get processed.
- `Contents`: Auto-inserts a table of contents.
- `PEPZero`: Special processing for PEP 0.
�reStructuredText� N)�nodes�utils� languages)�ApplicationError� DataError)� Transform�TransformError)�parts�
references�miscc @ sD e Zd ZdZdZdZdZe�dej �dfe�d�dffZ
dd � Zd
S )�Headersz<
Process fields in a PEP's initial RFC-2822 header.
ih zpep-%04dz3http://hg.python.org/peps/file/default/pep-%04d.txtz\$RCSfile: (.+),v \$$z\1z\$[a-zA-Z]+: (.+) \$$c C s t | j�s td��| jd }t|tj�rd|d vrtd��d }|D ]r}|d �� �� dkr�|d �� }zt|�}| j | }W nR t
y� |}d }| jjjd| |d �}| j�
|�}tj||pad
|d�}| j�
|�} |�| � t |d �r�|g|d d d d �<