a
    ibòfg  ã                   @   s@   d dl Z d dlZejrd dlZeddœdd„ZG dd„ dƒZdS )é    N)ÚsecondsÚreturnc                 C   s   t  | ¡ dS )z˜
    Sleep strategy that delays execution for a given number of seconds.

    This is the default strategy, and may be mocked out for unit testing.
    N)ÚtimeÚsleep)r   © r   úU/home/httpd/docs/test/DocsMgr/lib/python3.9/site-packages/pip/_vendor/tenacity/nap.pyr      s    r   c                   @   s6   e Zd ZdZdddœdd„Zeje ddœdd	„ZdS )
Úsleep_using_eventz0Sleep strategy that waits on an event to be set.zthreading.EventN)Úeventr   c                 C   s
   || _ d S )N)r	   )Úselfr	   r   r   r   Ú__init__%   s    zsleep_using_event.__init__)Útimeoutr   c                 C   s   | j j|d� d S )N)r   )r	   Úwait)r
   r   r   r   r   Ú__call__(   s    zsleep_using_event.__call__)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚtypingÚOptionalÚfloatr   r   r   r   r   r   "   s   r   )r   r   ÚTYPE_CHECKINGÚ	threadingr   r   r   r   r   r   r   Ú<module>   s
   	