403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/html5lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/html5lib/__pycache__/_utils.cpython-311.pyc
�

V=�^7���ddlmZmZmZddlmZ	ddlmZn#e$r	ddl	mZYnwxYwddl
mZmZer
ddl
mcmZn	ddlmcmZn#e$rddl
mcmZYnwxYwgd�Z	ed��Zeee��sed��Zeee��sJ�d	Zn
#e$rd
ZYnwxYwGd�de��ZGd
�de��Zd�Zd�Zd�Zd�ZdS)�)�absolute_import�division�unicode_literals)�
ModuleType)�Mapping)�	text_type�PY3N)�
default_etree�MethodDispatcher�isSurrogatePair�surrogatePairToCodepoint�moduleFactoryFactory�supports_lone_surrogatesz"\uD800"z	u"\uD800"TFc�(�eZdZdZdd�Zd�Zdd�ZdS)	rapDict with 2 special properties:

    On initiation, keys that are lists, sets or tuples are converted to
    multiple keys so accessing any one of the items in the original
    list-like object returns the matching value

    md = MethodDispatcher({("foo", "bar"):"baz"})
    md["foo"] == "baz"

    A default value which can be set through the default attribute.
    �c�Z�g}|D]a\}}t|ttttf��r|D]}|�||f����J|�||f���bt�||��t|��t|��ksJ�d|_	dS�N)
�
isinstance�list�tuple�	frozenset�set�append�dict�__init__�len�default)�self�items�_dictEntries�name�value�items      �1/usr/lib/python3/dist-packages/html5lib/_utils.pyrzMethodDispatcher.__init__9s����� �	3�	3�K�D�%��$��u�i�� =�>�>�
3� �7�7�D� �'�'��u�
�6�6�6�6�7��#�#�T�5�M�2�2�2�2��
�
�d�L�)�)�)��4�y�y�C��-�-�-�-�-�-������c�D�t�|||j��Sr)r�getr�r�keys  r$�__getitem__zMethodDispatcher.__getitem__Es���x�x��c�4�<�0�0�0r%Nc�"�t||��Sr)�BoundMethodDispatcher)r�instance�owners   r$�__get__zMethodDispatcher.__get__Hs��$�X�t�4�4�4r%)rr)�__name__�
__module__�__qualname__�__doc__rr*r/rr%r$rr,sU������
�
�
�
�
�
�1�1�1�5�5�5�5�5�5r%rc�6�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	dS)	r,zAWraps a MethodDispatcher, binding its return values to `instance`c�"�||_||_dSr)r-�
dispatcher)rr-r6s   r$rzBoundMethodDispatcher.__init__Ns�� ��
�$����r%c�L�|j|�|j��Sr)r6r/r-r(s  r$r*z!BoundMethodDispatcher.__getitem__Rs!����s�#�+�+�D�M�:�:�:r%c�(�||jvr||S|Sr�r6)rr)rs   r$r'zBoundMethodDispatcher.getWs���$�/�!�!���9���Nr%c�*�t|j��Sr)�iterr6�rs r$�__iter__zBoundMethodDispatcher.__iter__]s���D�O�$�$�$r%c�*�t|j��Sr)rr6r<s r$�__len__zBoundMethodDispatcher.__len__`s���4�?�#�#�#r%c��||jvSrr9r(s  r$�__contains__z"BoundMethodDispatcher.__contains__cs���d�o�%�%r%N)
r0r1r2r3rr*r'r=r?rArr%r$r,r,Lst������K�K�%�%�%�;�;�;�
���%�%�%�$�$�$�&�&�&�&�&r%r,c���t|��dkoct|d��dkoJt|d��dko1t|d��dkot|d��dkS)N�r��i�����i��)r�ord)�datas r$rrjsp����I�I��N�
>���Q��L�L�F�"�
>�'*�4��7�|�|�v�'=�
>���Q��L�L�F�"�
>�'*�4��7�|�|�v�'=�?r%c�t�dt|d��dz
dzzt|d��dz
z}|S)NirrDirErF)rG)rH�char_vals  r$r
r
ps<���3�t�A�w�<�<�&�0�E�9�9��T�!�W����&�(�H��Or%c����i���fd�}|S)Nc���ttjtd����rd|jz}n
d|jz}t	|�����}	�|||S#t$r�t|��}�|g|�Ri|��}|j�|��d�vri�|<d�|vri�||<d�||vri�|||<|�|||<|cYSwxYw)N�z_%s_factorys_%s_factoryr!�args�kwargs)	rrr0�typerr�KeyError�__dict__�update)	�
baseModulerNrOr!�kwargs_tuple�mod�objs�factory�moduleCaches	       ��r$�
moduleFactoryz+moduleFactoryFactory.<locals>.moduleFactory|s@����j�)�4��8�8�4�4�	8� �:�#6�6�D�D�!�J�$7�7�D��V�\�\�^�^�,�,��
	��t�$�T�*�<�8�8���	�	�	��T�"�"�C��7�:�7��7�7�7��7�7�D��L����%�%�%��[�(�(�$&��D�!��[��.�.�.�*,��D�!�$�'��{�4�0��6�6�6�8:��D�!�$�'��5�47�K���d�#�L�1��J�J�J�	���s� A4�4BD�Dr)rXrZrYs` @r$rrys/�����K�������.�r%c����i���fd�}|S)Nc���t|��t|�����f}|�vr�|i|���|<�|Sr)rr)rNrOr)�cache�funcs   ��r$�wrappedzmemoize.<locals>.wrapped�sP����T�{�{�E�&�,�,�.�.�1�1�2���e�����t�.�v�.�.�E�#�J��S�z�r%r)r^r_r]s` @r$�memoizer`�s.�����E��������Nr%) �
__future__rrr�typesr�collections.abcr�ImportError�collections�sixrr	�xml.etree.ElementTree�etree�ElementTreer
�xml.etree.cElementTree�cElementTree�__all__�eval�_xrr�	Exceptionrrr,rr
rr`rr%r$�<module>rpsP��B�B�B�B�B�B�B�B�B�B�������$�'�'�'�'�'�'�'���$�$�$�#�#�#�#�#�#�#�#�$�������������6�1�1�1�1�1�1�1�1�1�1�6�6�6�6�6�6�6�6�6�6�6���6�6�6�5�5�5�5�5�5�5�5�5�5�5�6����'�'�'��	$�	
��k�	�	�B��:�b�)�$�$�)�
�T�,�
�
���z�"�i�(�(�(�(�(� $�����%�%�%�$����%����5�5�5�5�5�t�5�5�5�@&�&�&�&�&�G�&�&�&�<?�?�?�������:	�	�	�	�	s/��'�'�	A	�	A�A�"0B�B�B

Youez - 2016 - github.com/yon3zu
LinuXploit