403Webshell
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 :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/docutils/transforms/__pycache__/peps.cpython-39.pyc
a

OԼa�+�@s�dZdZddlZddlZddlZddlZddlmZmZm	Z	ddlm
Z
mZddlm
Z
mZddlmZmZmZGdd	�d	e
�ZGd
d�de
�ZGdd
�d
e
�ZGdd�de
�ZGdd�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.
ZreStructuredText�N)�nodes�utils�	languages)�ApplicationError�	DataError)�	Transform�TransformError)�parts�
references�miscc@sDeZdZdZdZdZdZe�dej	�dfe�d�dffZ
dd	�Zd
S)�Headersz<
    Process fields in a PEP's initial RFC-2822 header.
    ihzpep-%04dz3http://hg.python.org/peps/file/default/pep-%04d.txtz\$RCSfile: (.+),v \$$z\1z\$[a-zA-Z]+: (.+) \$$cCs2t|j�std��|jd}t|tj�r4d|dvr<td��d}|D]�}|d����dkrD|d��}zt|�}|j	|}Wn�t
�y&|}d}|jjjd||d	�}|j�
|�}tj||p�d
|d�}|j�
|�}	|�|	�t|d��r|g|dddd�<n|dt�dd|�7<Yn0�q0qD|du�rBtd
��|dk�rpt�t�}
|j�d|
�|j�|
�t|�dk�s�|dd����dk�r�td��|D�]�}|d����}|d}t|�dk�r�td|jdd���n�t|�dk�rt|dtj��s�td|jdd���nt|dk�r�z&t�dt�t�|jd�d��}
Wnt�ydd}
Yn0|�r�|t�ddtjd|
|d��7}n�q�|d}|dk�r�|D]"}t|tj��r�|�t|���q��q�|dk�r|D]$}t|tj��r�|�t||���qܐq�|dv�r�g}t�d�}t �!d|���D]>}t|�}|�"tj|||jj#j$|j%|d��|�"|��q.|dd�|dd�<n�|dk�r�t&�'||j(�|�r*|��}
tjd|
|d�g|dd�<nd|d k�r|��}|jj#j$|j%d!}tjd||d�g|dd�<n"|d"k�r�t|��r�t&�'||j(��q�dS)#NzDocument tree is empty.r�rfc2822�classeszADocument does not begin with an RFC-2822 header; it is not a PEP.�pep�z?"PEP" header must contain an integer; "%s" is an invalid value.)Z	base_nodez(none))Zrefid�z3Document does not contain an RFC-2822 "PEP" header.��titlez	No title!z4PEP header field body contains multiple elements:
%s)�levelz=PEP header field body may only contain a single paragraph:
%sz
last-modifiedz%d-%b-%Y�source��unknown��refuriZauthorzdiscussions-to)Zreplaceszreplaced-byZrequires� z,?\s+���zcontent-type��version))�len�documentr�
isinstancerZ
field_list�astext�lower�int�pep_cvs_url�
ValueError�reporterZwarning�set_idZproblematicZadd_backref�	paragraph�pending�PEPZero�insert�note_pendingZpformat�time�strftime�	localtime�os�stat�OSError�	reference�replace_self�
mask_email�Text�re�split�append�settings�pep_base_url�pep_urlrZclean_rcs_keywords�rcs_keyword_substitutions)�self�headerrZfield�valueZcvs_url�msgZmsgidZprbZprbidr)�name�body�dateZpara�nodeZnewbody�spaceZrefpep�pepnoZpep_typeZuri�rH�</usr/lib/python3.9/site-packages/docutils/transforms/peps.py�apply)s�


����
 


(

�
�
�
�



��

z
Headers.applyN)�__name__�
__module__�__qualname__�__doc__�default_priorityr<r$r7�compile�
IGNORECASEr=rJrHrHrHrIrs�rc@seZdZdZdZdd�ZdS)�Contentsz~
    Insert an empty table of contents topic and a transform placeholder into
    the document after the RFC 2822 header.
    i|cCs�t�|jjj|jj�}|jd}t�d|�}tj	d|dgd�}t�
|�}|j�|�sb|d�|�|j�
|�t�tj�}||7}|j�d|�|j�|�dS)N�contentsr)r�namesr)rZget_languagerr:Z
language_coder&�labelsrr�topicZfully_normalize_nameZhas_namer9Znote_implicit_targetr)r	rRr+r,)r>�languagerBrrVr)rHrHrIrJ�s�

zContents.applyN�rKrLrMrNrOrJrHrHrHrIrR�srRc@s$eZdZdZdZdd�Zdd�ZdS)�TargetNotesz�
    Locate the "References" section, insert a placeholder for an external
    target footnote insertion transform at the end, and schedule the
    transform to run immediately.
    icCs|j}t|�d}d}}|dkrtt||tj�rt||d������}d|vr^||}qtnd|vrj|}|d8}q|s�t��}|t�dd�7}|�	|�|r�|�
||�n
|�|�t�t
j�}|�|�|j�|d�tjtjd|jid�}|�|�|j�|d�dS)	Nrrr
�	copyrightrZ
References�callback)Zdetails)rrr r�sectionr!r"r8rr'r+r9r)r
rYr,rZCallBack�cleanup_callback)r>�doc�iZrefsectrZZtitle_wordsr)rHrHrIrJ�s4



�
zTargetNotes.applycCs"t|j�dkr|jj�|j�dS)z�
        Remove an empty "References" section.

        Called after the `references.TargetNotes` transform is complete.
        rN)r�parent�remove)r>r)rHrHrIr]�szTargetNotes.cleanup_callbackN)rKrLrMrNrOrJr]rHrHrHrIrY�srYc@seZdZdZdZdd�ZdS)r*z'
    Special processing for PEP 0.
    i�cCs*t|j�}|j�|�|jj�|j�dS�N)�PEPZeroSpecialr�walkZ	startnoder`ra)r>ZvisitorrHrHrIrJ�s
z
PEPZero.applyNrXrHrHrHrIr*�sr*c@sNeZdZdZejZdd�Zdd�Zdd�Zdd	�Z	d
d�Z
dd
�Zdd�ZdS)rcz�
    Perform the special processing needed by PEP 0:

    - Mask email addresses.

    - Link PEP numbers in the second column of 4-column tables to the PEPs
      themselves.
    cCsdSrbrH�r>rErHrHrI�
unknown_visit�szPEPZeroSpecial.unknown_visitcCs|�t|��dSrb)r4r5rerHrHrI�visit_reference�szPEPZeroSpecial.visit_referencecCsd|dvrtj�dS)Nr
r)rZSkipNodererHrHrI�visit_field_list�szPEPZeroSpecial.visit_field_listcCs|ddk|_d|_dS)NZcols�r)�	pep_table�entryrerHrHrI�visit_tgroup�szPEPZeroSpecial.visit_tgroupcCs0|jd7_|jr,|jdkr,|d�d�dS)Nrrr�num)rkrjr9rerHrHrI�
visit_colspecszPEPZeroSpecial.visit_colspeccCs
d|_dS)Nr)rkrerHrHrI�	visit_rowszPEPZeroSpecial.visit_rowcCs�|jd7_|jr�|jdkr�t|�dkr�|d�d�|d}t|tj�r�t|�dkr�|��}z4t|�}|j	j
j|j|}tj
|||d�|d<Wnty�Yn0dS)Nrrrrmrr)rkrjrr9r rr(r!r#rr:r;r<r3r%)r>rE�p�textr�refrHrHrI�visit_entrys�zPEPZeroSpecial.visit_entryN)
rKrLrMrNrr<rfrgrhrlrnrorsrHrHrHrIrc�s	rc)zpeps@python.orgzpython-list@python.orgzpython-dev@python.orgcCs�|�d�r�|d�d�r�|ddd�tvr6|d}n |���dd�}tjd|d	d
�}|durb|S|dd|7<|g|dd�<|Sn|SdS)a�
    Mask the email address in `ref` and return a replacement node.

    `ref` is returned unchanged if it contains no email address.

    For email addresses such as "user@host", mask the address as "user at
    host" (text) to thwart simple email address harvesters (except for those
    listed in `non_masked_addresses`).  If a PEP number (`pepno`) is given,
    return a reference including a default email subject.
    rzmailto:rNr�@z&#32;&#97;t&#32;rZhtml)�formatz?subject=PEP%%20%s)�hasattr�
startswith�non_masked_addressesr!�replacer�raw)rrrGZreplacementZreplacement_textrHrHrIr5s
r5)N)rNZ
__docformat__�sysr0r7r-ZdocutilsrrrrrZdocutils.transformsrrr	r
rrrRrYr*ZSparseNodeVisitorrcrxr5rHrHrHrI�<module>s 	r23

Youez - 2016 - github.com/yon3zu
LinuXploit