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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

SҼa�#�@s<dZddlZddlmZe�d�Ze�dejejBejB�Z	e�dej
ejBejBejB�Ze�dej
�ZGdd	�d	e�ZGd
d�de�Zd2d
d�Zd3dd�Zd4dd�Zd5dd�Zdd�Zdd�Zdd�Zdd�Zdd�ZiZdd �Zd!d"�Zd6d#d$�Zd7d&d'�Z Gd(d)�d)�Z!d*d+�Z"d,d-�Z#d.d/�Z$Gd0d1�d1e�Z%dS)8z�
    pygments.util
    ~~~~~~~~~~~~~

    Utility functions.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
TextIOWrapperz[/\\ ]z�
    <!DOCTYPE\s+(
     [a-zA-Z_][a-zA-Z0-9]*
     (?: \s+      # optional in HTML5
     [a-zA-Z_][a-zA-Z0-9]*\s+
     "[^"]*")?
     )
     [^>]*>
z<(.+?)(\s.*?)?>.*?</.+?>z\s*<\?xml[^>]*\?>c@seZdZdZdS)�
ClassNotFoundzCRaised if one of the lookup functions didn't find a matching class.N)�__name__�
__module__�__qualname__�__doc__�rr�1/usr/lib/python3.9/site-packages/pygments/util.pyrsrc@seZdZdS)�OptionErrorN)rrrrrrr	r
"sr
FcCs@|�||�}|r|��}||vr<td|d�tt|��f��|S)Nz%Value for option %s must be one of %sz, )�get�lowerr
�join�map�str)�options�optname�allowed�default�normcase�stringrrr	�get_choice_opt&s�rcCs||�||�}t|t�r|St|t�r,t|�St|t�sHtd||f��n0|��dvrXdS|��dvrhdStd||f��dS)NzBInvalid type %r for option %s; use 1/0, yes/no, true/false, on/off)�1Zyes�trueZonT)�0�noZfalseZoffFzCInvalid value %r for option %s; use 1/0, yes/no, true/false, on/off)r�
isinstance�bool�intrr
r�rrrrrrr	�get_bool_opt0s$


����rcCs^|�||�}z
t|�WSty8td||f��Yn"tyXtd||f��Yn0dS)Nz=Invalid type %r for option %s; you must give an integer valuez>Invalid value %r for option %s; you must give an integer value)rr�	TypeErrorr
�
ValueErrorrrrr	�get_int_optDs
��
��r"cCsH|�||�}t|t�r|��St|ttf�r4t|�Std||f��dS)Nz9Invalid type %r for option %s; you must give a list value)rrr�split�list�tupler
)rrr�valrrr	�get_list_optRs
��r'cCsP|js
dSg}|j����D]$}|��r<|�d|���qqBqd�|���S)N�� )r�strip�
splitlines�appendr
�lstrip)�obj�res�linerrr	�docstring_headline^sr1cs�fdd�}�j|_t|�S)zAReturn a static text analyser function that returns float values.c	s^z�|�}Wnty YdS0|s*dSztdtdt|���WSttfyXYdS0dS)Ngg�?)�	Exception�min�max�floatr!r )�text�rv��frr	�text_analyselsz%make_analysator.<locals>.text_analyse)r�staticmethod)r9r:rr8r	�make_analysatorjsr<cCs�|�d�}|dkr$|d|���}n|��}|�d�r�z(dd�t�|dd����D�d}WntyrYd	S0t�d
|tj	�}|�
|�dur�dSd	S)a�Check if the given regular expression matches the last part of the
    shebang if one exists.

        >>> from pygments.util import shebang_matches
        >>> shebang_matches('#!/usr/bin/env python', r'python(2\.\d)?')
        True
        >>> shebang_matches('#!/usr/bin/python2.4', r'python(2\.\d)?')
        True
        >>> shebang_matches('#!/usr/bin/python-ruby', r'python(2\.\d)?')
        False
        >>> shebang_matches('#!/usr/bin/python/ruby', r'python(2\.\d)?')
        False
        >>> shebang_matches('#!/usr/bin/startsomethingwith python',
        ...                 r'python(2\.\d)?')
        True

    It also checks for common windows executable file extensions::

        >>> shebang_matches('#!C:\\Python2.4\\Python.exe', r'python(2\.\d)?')
        True

    Parameters (``'-f'`` or ``'--foo'`` are ignored so ``'perl'`` does
    the same as ``'perl -e'``)

    Note that this method automatically searches the whole string (eg:
    the regular expression is wrapped in ``'^$'``)
    �
rNz#!cSsg|]}|r|�d�s|�qS)�-)�
startswith)�.0�xrrr	�
<listcomp>�s�z#shebang_matches.<locals>.<listcomp>����Fz^%s(\.(exe|cmd|bat|bin))?$T)�findrr?�
split_path_rer#r*�
IndexError�re�compile�
IGNORECASE�search)r6�regex�indexZ
first_line�foundrrr	�shebang_matches{s

�rOcCs<t�|�}|durdS|�d�}t�|tj��|���duS)z�Check if the doctype matches a regular expression (if present).

    Note that this method only checks the first part of a DOCTYPE.
    eg: 'html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'
    NF�)�doctype_lookup_rerK�grouprHrI�I�matchr*)r6rL�mZdoctyperrr	�doctype_matches�s


rVcCs
t|d�S)z3Check if the file looks like it has a html doctype.Zhtml)rV)r6rrr	�html_doctype_matches�srWcCsrt�|�rdSt|�}z
t|WStylt�|�}|durFYdSt�|dd��du}|t|<|YS0dS)z2Check if a doctype exists or if we have some tags.TNi�)�xml_decl_rerT�hash�_looks_like_xml_cache�KeyErrorrQrK�tag_re)r6�keyrUr7rrr	�looks_like_xml�s


r^cCsd|d?d|d@fS)zoGiven a unicode character code with length greater than 16 bits,
    return the two 16 bit surrogate pair.
    i���
i�i�r)�crrr	�
surrogatepair�srac	Cs�g}d|d}d|dd}|�||d�|rT|D]}|�||d�q:n8|D]2}t|d�}|�||dd�|d	d�qX|�|d
�d�|�S)z)Formats a sequence of strings for output.r)�rPz = (�,�"N���rD�)r=)r,�reprr
)	Zvar_name�seq�rawZindent_level�linesZbase_indentZinner_indent�i�rrrr	�format_lines�s$rmrcCs>g}t�}|D]*}||vs||vr$q|�|�|�|�q|S)za
    Returns a list with duplicates removed from the iterable `it`.

    Order is preserved.
    )�setr,�add)�itZalready_seenZlst�seenrkrrr	�duplicates_removed�s
rrc@seZdZdZdd�ZdS)�Futurez�Generic class to defer some work.

    Handled specially in RegexLexerMeta, to support regex string construction at
    first use.
    cCst�dS�N)�NotImplementedError��selfrrr	r�sz
Future.getN)rrrrrrrrr	rs�srscCs�z|�d�}|dfWStyzz&ddl}|��}|��}||fWYSttfyt|�d�}|dfYYS0Yn0dS)z�Decode *text* with guessed encoding.

    First try UTF-8; this should fail for non-UTF-8 encodings.
    Then try the preferred locale encoding.
    Fall back to latin-1, which always works.
    zutf-8rN�latin1)�decode�UnicodeDecodeError�locale�getpreferredencoding�LookupError)r6r{Zprefencodingrrr	�guess_decodes


r~cCsBt|dd�r:z|�|j�}Wnty.Yn0||jfSt|�S)z�Decode *text* coming from terminal *term*.

    First try the terminal encoding, if given.
    Then try UTF-8.  Then try the preferred locale encoding.
    Fall back to latin-1, which always works.
    �encodingN)�getattrryrrzr~)r6�termrrr	�guess_decode_from_terminals
r�cCs"t|dd�r|jSddl}|��S)z7Return our best guess of encoding for the given *term*.rNr)r�rr{r|)r�r{rrr	�terminal_encoding)sr�c@seZdZdd�ZdS)�UnclosingTextIOWrappercCs|��dSrt)�flushrvrrr	�close3szUnclosingTextIOWrapper.closeN)rrrr�rrrr	r�1sr�)NF)N)N)N)Fr)r)&rrH�iorrIrF�DOTALL�	MULTILINE�VERBOSErQ�UNICODErJr\rSrXr!rr2r
rrr"r'r1r<rOrVrWrZr^rarmrrrsr~r�r�r�rrrr	�<module>s>

�	�




-
	




Youez - 2016 - github.com/yon3zu
LinuXploit