a
    ibòf`  ã                   @   s`   d dl Z d dlmZ e jr.d dlZd dlmZ dddœdd„Zdee jdgdf d	œd
d„Z	dS )é    N)Ú_utils)ÚRetryCallStater   ©Úretry_stateÚreturnc                 C   s   dS )z'Before call strategy that does nothing.N© ©r   r   r   úX/home/httpd/docs/test/DocsMgr/lib/python3.9/site-packages/pip/_vendor/tenacity/before.pyÚbefore_nothing   s    r
   zlogging.Logger)ÚloggerÚ	log_levelr   c                    s   dddœ‡ ‡fdd„}|S )z:Before call strategy that logs to some logger the attempt.r   Nr   c              	      s.   ˆ  ˆ dt | j¡› dt | j¡› d�¡ d S )NzStarting call to 'z', this is the z time calling it.)Úlogr   Úget_callback_nameÚfnÚ
to_ordinalÚattempt_numberr   ©r   r   r   r	   Úlog_it"   s    
ÿþzbefore_log.<locals>.log_itr   )r   r   r   r   r   r	   Ú
before_log   s    r   )
ÚtypingÚpip._vendor.tenacityr   ÚTYPE_CHECKINGÚloggingr   r
   ÚintÚCallabler   r   r   r   r	   Ú<module>   s   