$15 GRAYBYTE WORDPRESS FILE MANAGER $87

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.217.100
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/tenacity/__pycache__/

HOME
Current File : /opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/tenacity/__pycache__//wait.cpython-38.pyc
U

ʗRe#�@s�ddlZddlZddlZddlmZejr6ddlmZGdd�dej�ZGdd�de�Z	Gdd	�d	e	�Z
Gd
d�de�ZGdd
�d
e�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZdS)�N)�_utils)�RetryCallStatec@sLeZdZdZejded�dd��Zddd�dd	�Zde	j
d
d�dd�Zd
S)�	wait_basez(Abstract base class for wait strategies.r��retry_state�returncCsdS�N���selfrr	r	��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/tenacity/wait.py�__call__szwait_base.__call__�wait_combine)�otherrcCs
t||�Sr)r�rrr	r	r�__add__"szwait_base.__add__)rrcCs|dkr|S|�|�S�Nr)rrr	r	r�__radd__%szwait_base.__radd__N)�__name__�
__module__�__qualname__�__doc__�abc�abstractmethod�floatr
r�typing�Unionrr	r	r	rrs
rc@s0eZdZdZedd�dd�Zded�dd	�ZdS)
�
wait_fixedzCWait strategy that waits a fixed amount of time between each retry.N)�waitrcCs
||_dSr�r)rrr	r	r�__init__/szwait_fixed.__init__rrcCs|jSrrr
r	r	rr
2szwait_fixed.__call__)rrrrrr r
r	r	r	rr,srcs&eZdZdZdd��fdd�Z�ZS)�	wait_nonez7Wait strategy that doesn't wait at all before retrying.N)rcst��d�dSr)�superr )r��	__class__r	rr 9szwait_none.__init__)rrrrr �
__classcell__r	r	r#rr!6sr!c@sHeZdZdZdejeefejeefdd�dd�Zded	�d
d�Z	dS)
�wait_randomzAWait strategy that waits a random amount of time between min/max.r�N)�min�maxrcCs||_||_dSr)�wait_random_min�wait_random_max)rr(r)r	r	rr @szwait_random.__init__rrcCs|jt��|j|jSr)r*�randomr+r
r	r	rr
Dszwait_random.__call__)rr')
rrrrrr�intrr r
r	r	r	rr&=s(r&c@s0eZdZdZedd�dd�Zded�dd	�ZdS)
rz#Combine several waiting strategies.N��
strategiesrcGs
||_dSr)�
wait_funcs�rr/r	r	rr Kszwait_combine.__init__rrcst�fdd�|jD��S)Nc3s|]}|�d�VqdS)�rNr	)�.0�xr2r	r�	<genexpr>Osz(wait_combine.__call__.<locals>.<genexpr>)�sumr0r
r	r2rr
Nszwait_combine.__call__�rrrrrr rr
r	r	r	rrHsrc@s0eZdZdZedd�dd�Zded�dd	�ZdS)
�
wait_chaina�Chain two or more waiting strategies.

    If all strategies are exhausted, the very last strategy is used
    thereafter.

    For example::

        @retry(wait=wait_chain(*[wait_fixed(1) for i in range(3)] +
                               [wait_fixed(2) for j in range(5)] +
                               [wait_fixed(5) for k in range(4)))
        def wait_chained():
            print("Wait 1s for 3 attempts, 2s for 5 attempts and 5s
                   thereafter.")
    Nr.cGs
||_dSr)r/r1r	r	rr bszwait_chain.__init__rrcCs0tt|jd�t|j��}|j|d}||d�S)Nr'r2)r(r)�attempt_number�lenr/)rr�wait_func_no�	wait_funcr	r	rr
eszwait_chain.__call__r7r	r	r	rr8Rsr8c@s\eZdZdZddejfejee	fejee	fejee	fdd�dd�Z
de	d	�d
d�ZdS)�wait_incrementingz�Wait an incremental amount of time after each attempt.

    Starting at a starting value and incrementing by a value for each attempt
    (and restricting the upper limit to some maximum value).
    r�dN)�start�	incrementr)rcCs||_||_||_dSr)r?r@r))rr?r@r)r	r	rr rszwait_incrementing.__init__rrcCs(|j|j|jd}tdt||j��S�Nr'r)r?r@r9r)r()rr�resultr	r	rr
|szwait_incrementing.__call__�rrrrr�MAX_WAITrrr-rr r
r	r	r	rr=ks��
r=c@sjeZdZdZdejddfejee	fejee	fejee	fejee	fdd�dd�Z
d	e	d
�dd�ZdS)
�wait_exponentialaWait strategy that applies exponential backoff.

    It allows for a customized multiplier and an ability to restrict the
    upper and lower limits to some maximum and minimum value.

    The intervals are fixed (i.e. there is no jitter), so this strategy is
    suitable for balancing retries against latency when a required resource is
    unavailable for an unknown duration, but *not* suitable for resolving
    contention between multiple processes for a shared resource. Use
    wait_random_exponential for the latter case.
    r'�rN)�
multiplierr)�exp_baser(rcCs||_||_||_||_dSr)rGr(r)rH)rrGr)rHr(r	r	rr �szwait_exponential.__init__rrcCsTz|j|jd}|j|}Wntk
r8|jYSXttd|j�t||j��SrA)rHr9rG�
OverflowErrorr)r()rr�exprBr	r	rr
�szwait_exponential.__call__rCr	r	r	rrE�s��rEcs(eZdZdZded��fdd�Z�ZS)�wait_random_exponentialaRandom wait with exponentially widening window.

    An exponential backoff strategy used to mediate contention between multiple
    uncoordinated processes for a shared resource in distributed systems. This
    is the sense in which "exponential backoff" is meant in e.g. Ethernet
    networking, and corresponds to the "Full Jitter" algorithm described in
    this blog post:

    https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/

    Each retry occurs at a random time in a geometrically expanding interval.
    It allows for a custom multiplier and an ability to restrict the upper
    limit of the random interval to some maximum value.

    Example::

        wait_random_exponential(multiplier=0.5,  # initial window 0.5s
                                max=60)          # max 60s timeout

    When waiting for an unavailable resource to become available again, as
    opposed to trying to resolve contention for a shared resource, the
    wait_exponential strategy (which uses a fixed interval) may be preferable.

    rrcst�j|d�}t�d|�S)Nr2r)r"r
r,�uniform)rr�highr#r	rr
�sz wait_random_exponential.__call__)rrrrrr
r%r	r	r#rrK�srK)rr,r�pip._vendor.tenacityr�
TYPE_CHECKINGr�ABCrrr!r&rr8r=rErKr	r	r	r�<module>s

"


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.49 PM
root / linksafe
0755
__init__.cpython-38.pyc
15.891 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
_asyncio.cpython-38.pyc
2.562 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
_utils.cpython-38.pyc
1.246 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
after.cpython-38.pyc
1.212 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
before.cpython-38.pyc
1.106 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
before_sleep.cpython-38.pyc
1.384 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
nap.cpython-38.pyc
1.202 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
retry.cpython-38.pyc
8.616 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
stop.cpython-38.pyc
4.19 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
tornadoweb.cpython-38.pyc
1.735 KB
13 Nov 2023 9.40 PM
root / linksafe
0644
wait.cpython-38.pyc
7.813 KB
13 Nov 2023 9.40 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF