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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pygments/formatters/__pycache__/other.cpython-39.pyc
a

SҼa��@sxdZddlmZddlmZddlmZddlmZgd�Z	Gdd�de�Z
Gd	d
�d
e�ZdZdZ
Gd
d�de�ZdS)z�
    pygments.formatters.other
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    Other formatters: NullFormatter, RawTokenFormatter.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�	Formatter)�get_choice_opt)�Token)�colorize)�
NullFormatter�RawTokenFormatter�TestcaseFormatterc@s*eZdZdZdZddgZdgZdd�ZdS)	rz;
    Output the text unchanged without any formatting.
    z	Text only�textZnullz*.txtcCs8|j}|D](\}}|r(|�|�|��q
|�|�q
dS�N)�encoding�write�encode)�self�tokensource�outfile�enc�ttype�value�r�=/usr/lib/python3.9/site-packages/pygments/formatters/other.py�formats
zNullFormatter.formatN)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesrrrrrrs
rc@s6eZdZdZdZddgZdgZdZdd�Zd	d
�Z	dS)ra}
    Format tokens as a raw representation for storing token streams.

    The format is ``tokentype<TAB>repr(tokenstring)\n``. The output can later
    be converted to a token stream with the `RawTokenLexer`, described in the
    :doc:`lexer list <lexers>`.

    Only two options are accepted:

    `compress`
        If set to ``'gz'`` or ``'bz2'``, compress the output with the given
        compression algorithm after encoding (default: ``''``).
    `error_color`
        If set to a color name, highlight error tokens using that color.  If
        set but with no value, defaults to ``'red'``.

        .. versionadded:: 0.11

    z
Raw tokens�raw�tokensz*.rawFcKs�tj|fi|��d|_t|dgd�d�|_|�dd�|_|jdurJd|_|jdur�zt|jd�Wn ty�t	d|j��Yn0dS)	N�ascii�compress)�Znone�gz�bz2r"�error_colorTZredzInvalid color %r specified)
r�__init__rrr!�getr%r�KeyError�
ValueError�r�optionsrrrr&>s�

�zRawTokenFormatter.__init__c
sz��d�Wnty(td��Yn0|jdkrZddl}|�ddd����j}�j}nF|jdkr�ddl}|�d����fd	d
�}��fdd�}n�j}�j}|j	r�|D]8\}}d
||f}	|t
jur�|t|j	|	��q�||	�q�n|D]\}}|d
||f�q�|�dS)N�z3The raw tokens formatter needs a binary output filer#rr"�wb�	r$cs����|��dSr
)rr!)r	�Z
compressorrrrr`sz'RawTokenFormatter.format.<locals>.writecs���������dSr
)r�flushrr/rrr0csz'RawTokenFormatter.format.<locals>.flushs%r	%r
)
r�	TypeErrorr!�gzipZGzipFile�closer$�
BZ2Compressorr0r%r�Errorr)
rrrr2rr0r$rr�linerr/rrPs2



zRawTokenFormatter.formatN)
rrrrrrrZ
unicodeoutputr&rrrrrr$srzG    def testNeedsName(lexer):
        fragment = %r
        tokens = [
zD        ]
        assert list(lexer.get_tokens(fragment)) == tokens
c@s*eZdZdZdZdgZdd�Zdd�ZdS)	rzU
    Format tokens as appropriate for a new testcase.

    .. versionadded:: 2.0
    ZTestcaseZtestcasecKs2tj|fi|��|jdur.|jdkr.td��dS)N�utf-8z*Only None and utf-8 are allowed encodings.)rr&rr)r*rrrr&�szTestcaseFormatter.__init__cCs�d}g}g}|D]&\}}|�|�|�d|||f�qtd�|�f}d�|�}	t}
|jdurt|�||	|
�n0|�|�d��|�|	�d��|�|
�d��|��dS)Nz            z%s(%s, %r),
r"r7)�append�TESTCASE_BEFORE�join�TESTCASE_AFTERrrr
r0)rrrZindentationZrawbufZoutbufrr�beforeZduringZafterrrrr�s


zTestcaseFormatter.formatN)rrrrrrr&rrrrrr�s
rN)rZpygments.formatterrZ
pygments.utilrZpygments.tokenrZpygments.consoler�__all__rrr9r;rrrrr�<module>s
S

Youez - 2016 - github.com/yon3zu
LinuXploit