
     dt                     |    d dl Z d dlmZ e j        r
d dlZd dlmZ ddZ	 dd	d
dedede j	        dgdf         fdZ
dS )    N)_utils)RetryCallStateretry_stater   returnc                     dS )z'Before call strategy that does nothing.N )r   s    jC:\Users\ChattiNader\Documents\MyHotelMatch\api\dev\Lib\site-packages\pip/_vendor/tenacity/before_sleep.pybefore_sleep_nothingr
      s          Floggerzlogging.Logger	log_levelexc_infoc                      d fd}|S )z:Before call strategy that logs to some logger the attempt.r   r   r   Nc                 |   | j         j        rK| j                                         }d|j        j         d| }}r| j                                         }n d}nd| j                                         }}d}                    dt          j        | j	                   d| j
        j         d| d| d		|
           d S )Nraisedz: Freturnedz	Retrying z in z seconds as it  .)r   )outcomefailed	exception	__class____name__resultlogr   get_callback_namefnnext_actionsleep)r   exverbvaluelocal_exc_infor   r   r   s        r	   log_itz before_sleep_log.<locals>.log_it&   s   % 
	#$..00B"r|'<$D$D$D$D%D '!,!4!>!>!@!@!&$k&9&@&@&B&B%D"N

P0@@ P P)/P P@DP PGLP P P#	 	 	
 	
 	
 	
 	
r   r   r   r   Nr   )r   r   r   r$   s   ``` r	   before_sleep_logr&      s4    
 
 
 
 
 
 
 
( Mr   r%   )F)typingpip._vendor.tenacityr   TYPE_CHECKINGloggingr   r
   intboolCallabler&   r   r   r	   <module>r.      s   "  ' ' ' ' ' '	 4NNN3333332 2 2 2    _&'-.	     r   