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/sphinx/domains/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/domains/__pycache__/citation.cpython-39.opt-1.pyc
a

�ab��@sdZddlmZmZmZmZmZmZmZm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZddlmZdd	lmZdd
lmZmZer�ddlmZddlmZdd
lm Z e�!e"�Z#Gdd�de�Z$Gdd�de�Z%Gdd�de�Z&dee'efd�dd�Z(dS)z�
    sphinx.domains.citation
    ~~~~~~~~~~~~~~~~~~~~~~~

    The citation domain.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�
TYPE_CHECKING�Any�Dict�List�Optional�Set�Tuple�cast)�nodes)�Element)�pending_xref)�Domain)�__)�SphinxTransform)�logging)�copy_source_info�make_refnode)�Sphinx)�Builder)�BuildEnvironmentc
@s�eZdZdZdZdZddiZeee	e
e	e	effd�dd��Zeee	e
e	fd�dd	��Ze	d
d�dd
�Zee	ed
d�dd�Zejd
d�dd�Zed
d�dd�Zd
d�dd�Zde	de	e	eeeed�dd�Zde	de	eeee
e	efd�dd�Zd
S) �CitationDomainzDomain for citations.�citation�refzcitation not found: %(target)s)�returncCs|j�di�S)N�	citations��data�
setdefault��self�r �;/usr/lib/python3.9/site-packages/sphinx/domains/citation.pyr*szCitationDomain.citationscCs|j�di�S)N�
citation_refsrrr r r!r".szCitationDomain.citation_refsN)�docnamercCspt|j���D]\}\}}}||kr|j|=qt|j���D].\}}||hkrX|j|=q<||vr<|�|�q<dS)N)�listr�itemsr"�remove)rr#�key�fnZ_lZ_lineno�docnamesr r r!�	clear_doc2s


zCitationDomain.clear_doc)r)�	otherdatarcCsr|d��D]\}}|d|vr||j|<q|d��D]4\}}|j�|t��}|D]}||vrT|�|�qTq8dS)Nrrr")r%rr"r�set�add)rr)r+r'rr"r#r r r!�merge_domaindata<szCitationDomain.merge_domaindata)�nodercCsh|d��}||jvrF|j�|j|d�}tjtd�|||ddd�|d|dd|jf|j|<dS)Nrz+duplicate citation %s, other instance in %srr)�location�type�subtyper#�ids)�astextr�envZdoc2path�logger�warningr�line)rr/�label�pathr r r!�
note_citationGs
�zCitationDomain.note_citationcCs&|j�|dt��}|�|jj�dS)N�	reftarget)r"rr,r-r5r#)rr/r)r r r!�note_citation_referenceOsz&CitationDomain.note_citation_referencecCsD|j��D]4\}\}}}||jvr
tjtd�|dd||fd�q
dS)Nz Citation [%s] is not referenced.rr)r1r2r0)rr%r"r6r7r)r�namer#Z_labelid�linenor r r!�check_consistencySs


�z CitationDomain.check_consistencyrr)r5�fromdocname�builder�typ�targetr/�contnodercCs,|j�|d�\}}	}
|sdSt||||	|�S)N)�rFr)r�getr)rr5rArBrCrDr/rEr#Zlabelidr?r r r!�resolve_xrefYs�zCitationDomain.resolve_xref)r5rArBrDr/rErc	Cs0|�|||d|||�}|dur"gSd|fgSdS)Nr)rH)rr5rArBrDr/rEZrefnoder r r!�resolve_any_xrefcszCitationDomain.resolve_any_xref)�__name__�
__module__�__qualname__�__doc__r>r9Zdangling_warnings�propertyr�strr�intrrr"r*rr.r
rr;rr=r@rrrHrIr r r r!r s,�"
�
�rc@s$eZdZdZdZedd�dd�ZdS)�CitationDefinitionTransformz3Mark citation definition labels as not smartquoted.�kN��kwargsrcKsXtt|j�d��}|j�tj�D]2}|jj|d<|�	|�ttj
|d�}d|d<q dS)Nrr#rF�support_smartquotes)r	rr5�
get_domain�document�findallr
rr#r;r9)rrT�domainr/r9r r r!�applyqs
z!CitationDefinitionTransform.apply�rJrKrLrMZdefault_priorityrrZr r r r!rQmsrQc@s$eZdZdZdZedd�dd�ZdS)�CitationReferenceTransformz|
    Replace citation references by pending_xref nodes before the default
    docutils transform tries to resolve them.
    rRNrSc
Ks�tt|j�d��}|j�tj�D]b}|��}t	|dd|dd|d|�
dg�d�}|t�|d|�7}t||�|�
|�|�|�q dS)	NrrTFr3�classes)Z	refdomainZreftyper<ZrefwarnrUr3r]z[%s])r	rr5rVrWrXr
Zcitation_referencer4rrGZinlinerZreplace_selfr=)rrTrYr/rDrr r r!rZ�s
�

z CitationReferenceTransform.applyr[r r r r!r\}sr\r)�apprcCs,|�t�|�t�|�t�ddddd�S)NZbuiltin�T)�versionZenv_versionZparallel_read_safeZparallel_write_safe)Z
add_domainrZ
add_transformrQr\)r^r r r!�setup�s


�raN))rM�typingrrrrrrrr	Zdocutilsr
Zdocutils.nodesrZsphinx.addnodesrZsphinx.domainsr
Z
sphinx.localerZsphinx.transformsrZsphinx.utilrZsphinx.util.nodesrrZsphinx.applicationrZsphinx.buildersrZsphinx.environmentrZ	getLoggerrJr6rrQr\rOrar r r r!�<module>s$
(
M

Youez - 2016 - github.com/yon3zu
LinuXploit