o ƚRet @sfddlZddlmZejrddlZddlmZdddZ dd d d ed edej dgdffddZ dS)N)_utils)RetryCallState retry_staterreturncCsdS)z'Before call strategy that does nothing.N)rrr/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-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