o 7]ht @sfddlZddlmZejrddlZddlmZdddZ dd d d ed edej dgdffddZ dS)N)_utils)RetryCallState retry_staterreturncCsdS)z'Before call strategy that does nothing.N)rrrC/usr/lib/python3/dist-packages/pip/_vendor/tenacity/before_sleep.pybefore_sleep_nothingsrFloggerzlogging.Logger log_levelexc_infocsdfdd }|S)z:Before call strategy that logs to some logger the attempt.rrrNc s|jjr |j}d|jjd|}}r|j}n d}n d|j}}d}jdt|j d|j j d|d|d |d dS) Nraisedz: Freturnedz Retrying z in z seconds as it  .)r ) outcomefailed exception __class____name__resultlogrget_callback_namefn next_actionsleep)rexverbvaluelocal_exc_infor r r rrlog_it&s&   z before_sleep_log..log_itrrrNr)r r r r rrrbefore_sleep_logsr"r!)F) typingpip._vendor.tenacityr TYPE_CHECKINGloggingrrintboolCallabler"rrrrs