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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

�ab;�@s�dZddlZddlmZmZmZmZmZmZddl	Z
ddlZ
ddl
mZddlm
Z
ddlmZddlmZddlmZdd	lmZdd
lmZmZer�ddlmZGdd
�d
e
jj�ZGdd�de
jjje�Zdeeefd�dd�Z dS)z�
    sphinx.parsers
    ~~~~~~~~~~~~~~

    A Base class for additional parsers.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
TYPE_CHECKING�Any�Dict�List�Type�Union)�nodes)�states)�
StringList)�	Transform)�SmartQuotes)�RemovedInSphinx50Warning)�
append_epilog�prepend_prolog)�Sphinxc@s2eZdZdZddd�dd�Zedd�dd	��ZdS)
�Parsera�
    A base class of source parsers.  The additional parsers should inherit this class instead
    of ``docutils.parsers.Parser``.  Compared with ``docutils.parsers.Parser``, this class
    improves accessibility to Sphinx APIs.

    The subclasses can access the following objects and functions:

    self.app
        The application object (:class:`sphinx.application.Sphinx`)
    self.config
        The config object (:class:`sphinx.config.Config`)
    self.env
        The environment object (:class:`sphinx.environment.BuildEnvironment`)
    self.warn()
        Emit a warning. (Same as :meth:`sphinx.application.Sphinx.warn()`)
    self.info()
        Emit an info message. (Same as :meth:`sphinx.application.Sphinx.info()`)

    .. deprecated:: 1.6
       ``warn()`` and ``info()`` is deprecated.  Use :mod:`sphinx.util.logging` instead.
    .. deprecated:: 3.0
       parser.app is deprecated.
    rN��app�returncCs||_|j|_|j|_dS)z�set_application will be called from Sphinx to set app and other instance variables

        :param sphinx.application.Sphinx app: Sphinx application object
        N)�_app�config�env)�selfr�r�2/usr/lib/python3.9/site-packages/sphinx/parsers.py�set_application6szParser.set_application�rcCstjdtdd�|jS)Nzparser.app is deprecated.�)�
stacklevel)�warnings�warnr
r)rrrrr?sz
Parser.app)�__name__�
__module__�__qualname__�__doc__r�propertyrrrrrrs	rcsZeZdZdZeeed��fdd�Zee	e
fejdd�dd�Z
e
dd	�d
d�Z�ZS)�	RSTParserzA reST parser for Sphinx.rcst���}|�t�|S)z�
        Sphinx's reST parser replaces a transform class for smart-quotes by its own

        refs: sphinx.io.SphinxStandaloneReader
        )�super�get_transforms�remover)rZ
transforms��	__class__rrr(Hs

zRSTParser.get_transformsN)�inputstring�documentrcCs�|�||�tj|j|j|jjd�|_t|t	�rTt
jj||jj
dd�}t||j�}n|}|�|�|jj|||jd�|��dS)z(Parse text and generate a document tree.)�
state_classes�
initial_state�debugT)�	tab_widthZconvert_whitespace)�inlinerN)Zsetup_parser	ZRSTStateMachiner.r/ZreporterZ
debug_flagZstatemachine�
isinstance�str�docutilsZstring2linesZsettingsr1r
Zcurrent_source�decorate�runr2Zfinish_parse)rr,r-�linesZ
inputlinesrrr�parseRs �
�
zRSTParser.parse)�contentrcCs t||jj�t||jj�dS)z'Preprocess reST content before parsing.N)rrZ
rst_prologrZ
rst_epilog)rr:rrrr6hszRSTParser.decorate)r!r"r#r$rrrr(rr4r
rr-r9r6�
__classcell__rrr*rr&Es
r&rrcCs|�t�dddd�S)NZbuiltinT)�versionZparallel_read_safeZparallel_write_safe)Zadd_source_parserr&)rrrr�setupns

�r=)!r$r�typingrrrrrrZdocutils.parsersr5Zdocutils.parsers.rstrr	Zdocutils.statemachiner
Zdocutils.transformsrZdocutils.transforms.universalrZsphinx.deprecationr
Zsphinx.util.rstrrZsphinx.applicationr�parsersrZrstr&r4r=rrrr�<module>s 
 ()

Youez - 2016 - github.com/yon3zu
LinuXploit