Ret |ddlZddlmZejr ddlZddlmZddZ dd d d ed edej dgdffd Z dS)N)_utils)RetryCallState retry_staterreturncdS)z'Before call strategy that does nothing.N)rs /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/tenacity/before_sleep.pybefore_sleep_nothingr sFloggerzlogging.Logger log_levelexc_infocdfd }|S)z:Before call strategy that logs to some logger the attempt.rrrNc ||jjrK|j}d|jjd|}}r|j}n d}nd|j}}d}dtj|j d|j j 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_inforr r s r log_itz before_sleep_log..log_it&s   % #$..00B"r|'<$D$D$D$D%D '!,!4!>!>!@!@!&$k&9&@&@&B&B%D"N  P0@@ P P)/ P P@D P PGL P P P#      r rrrNr)r r rr$s``` r before_sleep_logr&s4        ( Mr r%)F) typingpip._vendor.tenacityr TYPE_CHECKINGloggingrr intboolCallabler&rr r r.s" '''''' 4NNN3333332222  _&'-. r