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/builders/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/builders/__pycache__/xml.cpython-39.pyc
a

�ab*�@s�dZddlmZddlmZmZmZmZmZm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlmZmZdd
lmZmZe� e!�Z"Gdd�de�Z#Gdd�de#�Z$eee%efd�dd�Z&dS)z�
    sphinx.builders.xml
    ~~~~~~~~~~~~~~~~~~~

    Docutils-native XML and pseudo-XML builders.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�path)�Any�Dict�Iterator�Set�Type�Union)�nodes)�StringOutput)�Node)�
XMLTranslator)�Sphinx)�Builder)�__)�logging)�	ensuredir�os_path)�PseudoXMLWriter�	XMLWriterc@s�eZdZUdZdZdZed�ZdZdZ	e
Zee
e
e
efed<eZdd�d	d
�Zeed�dd�Zdeeed
�dd�Zeedd�dd�Zeedd�dd�Zdd�dd�ZdS)�
XMLBuilderz%
    Builds Docutils-native XML.
    Zxmlz The XML files are in %(outdir)s.z.xmlT�
_writer_classN)�returncCsdS�N���selfrr�7/usr/lib/python3.9/site-packages/sphinx/builders/xml.py�init+szXMLBuilder.initc	cs�|jjD]�}||jjvr |Vqt�|j||j�}zt�|�}WntyXd}Yn0z$t�|j�	|��}||kr||VWqt
y�Yq0qdS)Nr)�envZ
found_docsZall_docsr�join�outdir�
out_suffix�getmtime�	ExceptionZdoc2path�OSError)r�docnameZ
targetnameZtargetmtimeZsrcmtimerrr�get_outdated_docs.s

zXMLBuilder.get_outdated_docs)r%�typrcCs|Srr)rr%r'rrr�get_target_uri@szXMLBuilder.get_target_uri)�docnamesrcCs|�|�|_dSr)r�writer)rr)rrr�prepare_writingCszXMLBuilder.prepare_writing)r%�doctreerc
Csd|��}|jj��D]}d|j}d||<q|�tj�D]l}|j�	�D]\\}}t
|t�rft|�|j|<|j|}t
|t�rFt
|�D]\}}	t
|	t�r�t|	�||<q�qFq8tdd�}
|j�||
�t�|jt|�|j�}tt�|��zBt|ddd��}|�|jj�Wd�n1�s0YWn8t�y^}
zt�td�||
�WYd}
~
n
d}
~
00dS)Nzxmlns:zhttps://www.sphinx-doc.org/zutf-8)�encoding�wzerror writing file %s: %s)ZdeepcopyrZdomains�values�name�findallr	ZElementZ
attributes�items�
isinstance�tuple�list�	enumerater
r*�writerrr rr!r�dirname�open�outputr$�loggerZwarningr)rr%r,�domainZxmlnsZnodeZatt�value�i�valZdestinationZoutfilename�f�errrrr�	write_docFs,






2zXMLBuilder.write_doccCsdSrrrrrr�finish`szXMLBuilder.finish)N)�__name__�
__module__�__qualname__�__doc__r0�formatr�epilogr!Zallow_parallelrrrrr�__annotations__rZdefault_translator_classrr�strr&r(rr+rrBrCrrrrrs
rc@s(eZdZdZdZdZed�ZdZe	Z
dS)�PseudoXMLBuilderz1
    Builds pseudo-XML for display purposes.
    Z	pseudoxmlz'The pseudo-XML files are in %(outdir)s.z
.pseudoxmlN)rDrErFrGr0rHrrIr!rrrrrrrLdsrL)�apprcCs.|�t�|�t�|�ddd�dddd�S)NZ
xml_prettyTrZbuiltin)�versionZparallel_read_safeZparallel_write_safe)Zadd_builderrrLZadd_config_value)rMrrr�setupqs

�rON)'rG�osr�typingrrrrrrZdocutilsr	Zdocutils.ior
Zdocutils.nodesrZdocutils.writers.docutils_xmlrZsphinx.applicationr
Zsphinx.buildersrZ
sphinx.localerZsphinx.utilrZsphinx.util.osutilrrZsphinx.writers.xmlrrZ	getLoggerrDr;rrLrKrOrrrr�<module>s 
 
G

Youez - 2016 - github.com/yon3zu
LinuXploit