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 :  /lib/python3/dist-packages/django/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/django/utils/__pycache__/deprecation.cpython-311.pyc
�

�|�eN����ddlZddlZddlZddlmZGd�de��ZGd�de��ZeZ	Gd�d��Z
Gd	�d
e��ZGd�de��Z
Gd
�d��ZdS)�N)�
sync_to_asyncc��eZdZdS)�RemovedInDjango40WarningN��__name__�
__module__�__qualname__���:/usr/lib/python3/dist-packages/django/utils/deprecation.pyrr��������Drrc��eZdZdS)�RemovedInDjango41WarningNrr
rrrrr
rrc��eZdZd�Zd�ZdS)�warn_about_renamed_methodc�>�||_||_||_||_dS�N)�
class_name�old_method_name�new_method_name�deprecation_warning)�selfrrrrs     r�__init__z"warn_about_renamed_method.__init__s'��$���.���.���#6�� � � rc������fd�}|S)Nc	�|��tjd�j�d�j�d�j�d��jd���|i|��S)N�`�.�` is deprecated, use `�
` instead.�)�warnings�warnrrrr)�args�kwargs�frs  ��r�wrappedz3warn_about_renamed_method.__call__.<locals>.wrappeds]����M�M�����$�"6�"6�"6��8L�8L�8L�N��(�!�
-�
-�
-��1�d�%�f�%�%�%rr
)rr%r&s`` r�__call__z"warn_about_renamed_method.__call__s)����	&�	&�	&�	&�	&�	&��rN)rrr	rr'r
rrrrs2������7�7�7�����rrc�&��eZdZdZdZ�fd�Z�xZS)�RenameMethodsBasea#
    Handles the deprecation paths when renaming a method.

    It does the following:
        1) Define the new method if missing and complain about it.
        2) Define the old method if missing.
        3) Complain whenever an old method is called.

    See #15363 for more details.
    r
c�,��t���||||��}tj|��D]�}|j}|jD]�}|d}|j�|��}	|d}
|j�|
��}|d}t|g|�R�}
|sM|	rKtj
d|�d|�d|
�d�|d��t||
|	��t|||
|	����|	s|rt|||
|�����Ɍ�|S)Nr�r rrz` method should be renamed `z`.)�super�__new__�inspect�getmror�renamed_methods�__dict__�getrr!r"�setattr)�cls�name�bases�attrs�	new_class�baser�renamed_methodr�
old_methodr�
new_methodr�wrapper�	__class__s              �rr-zRenameMethodsBase.__new__2sg����G�G�O�O�C��u�e�<�<�	��N�9�-�-�	H�	H�D���J�"%�"5�
H�
H��"0��"3��!�]�.�.��?�?�
�"0��"3��!�]�.�.��?�?�
�&4�Q�&7�#�3�J�P��P�P�P��"�H�j�H��M�M�#���_�_�_�o�o�o�G�+�Q�0�0�0��D�/�:�>�>�>��D�/�7�7�:�3F�3F�G�G�G�"�H�j�H��D�/�7�7�:�3F�3F�G�G�G��'
H�*�r)rrr	�__doc__r0r-�
__classcell__�r>s@rr)r)$sI�������	�	��O���������rr)c���eZdZ�fd�Z�xZS)�DeprecationInstanceCheckc���tjd|j�d|j�d�|jd��t���|��S)Nrrrr )r!r"r�alternativerr,�__instancecheck__)r�instancer>s  �rrFz*DeprecationInstanceCheck.__instancecheck__PsR����
�
�7;�}�}�}�d�FV�FV�FV�W��$�a�	
�	
�	
��w�w�(�(��2�2�2r)rrr	rFr@rAs@rrCrCOs8�������3�3�3�3�3�3�3�3�3rrCc�@��eZdZdZdZd�fd�	Zd�Zd�Zd�Zd�Z	�xZ
S)	�MiddlewareMixinTNc���|�|��||_|���t�����dSr)�_get_response_none_deprecation�get_response�_async_checkr,r)rrLr>s  �rrzMiddlewareMixin.__init__^sM����+�+�L�9�9�9�(���������
���������rc�h�tj|j��rtjj|_dSdS)z�
        If get_response is a coroutine function, turns us into async mode so
        a thread is not consumed during a whole request.
        N)�asyncio�iscoroutinefunctionrL�
coroutines�
_is_coroutine)rs rrMzMiddlewareMixin._async_checkds=��
�&�t�'8�9�9�	B�")�!3�!A�D����	B�	Brc�*�tj|j��r|�|��Sd}t	|d��r|�|��}|p|�|��}t	|d��r|�||��}|S)N�process_request�process_response)rOrPrL�	__acall__�hasattrrTrU�r�request�responses   rr'zMiddlewareMixin.__call__ns����&�t�'8�9�9�	+��>�>�'�*�*�*����4�*�+�+�	5��+�+�G�4�4�H��9�t�0�0��9�9���4�+�,�,�	@��,�,�W�h�?�?�H��rc��K�d}t|d��r%t|jd���|���d{V��}|p|�|���d{V��}t|d��r&t|jd���||���d{V��}|S)zh
        Async version of __call__ that is swapped in when an async request
        is running.
        NrTT)�thread_sensitiverU)rWrrTrLrUrXs   rrVzMiddlewareMixin.__acall__zs����
���4�*�+�+�	��]��$�!%�������������H��?�T�%6�%6�w�%?�%?�?�?�?�?�?�?���4�+�,�,�	!��]��%�!%�����x�!�!�!�!�!�!�!�!�H��rc�F�|�tjdtd���dSdS)NzDPassing None for the middleware get_response argument is deprecated.�)�
stacklevel)r!r"r)rrLs  rrKz.MiddlewareMixin._get_response_none_deprecation�s=�����M��(�Q�
�
�
�
�
�
� �rr)rrr	�sync_capable�
async_capablerrMr'rVrKr@rAs@rrIrIXs���������L��M�������B�B�B�
�
�
����&������rrI)rOr.r!�asgiref.syncr�DeprecationWarningr�PendingDeprecationWarningr�RemovedInNextVersionWarningr�typer)rCrIr
rr�<module>rgs?��������������&�&�&�&�&�&�	�	�	�	�	�1�	�	�	�	�	�	�	�	�8�	�	�	�7����������"(�(�(�(�(��(�(�(�V3�3�3�3�3�t�3�3�3�;�;�;�;�;�;�;�;�;�;r

Youez - 2016 - github.com/yon3zu
LinuXploit