관리-도구
편집 파일: before_sleep.cpython-312.pyc
� G��eD � � � d dl Z d dlmZ e j r d dlZd dlmZ dd�Z d ddd ed ede j dgdf fd�Z y)� N)�_utils)�RetryCallStater �returnc � � y)z'Before call strategy that does nothing.N� )�retry_states ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/tenacity/before_sleep.py�before_sleep_nothingr s � � �loggerzlogging.Logger� log_level�exc_infoc � � ��� d��� fd�}|S )z:Before call strategy that logs to some logger the attempt.c �> �� | j �t d� �| j �t d� �| j j rW| j j � }d|j j � d|� �}}�r| j j � }n!d}nd| j j � }}d}| j �d}nt j | j � }�j �d|� d | j j � d |� d|� d� |� � y )Nz&log_it() called before outcome was setz*log_it() called before next_action was set�raisedz: F�returnedz <unknown>z Retrying z in z seconds as it � �.)r ) �outcome�RuntimeError�next_action�failed� exception� __class__�__name__�result�fnr �get_callback_name�log�sleep) r �ex�verb�value�local_exc_info�fn_namer r r s ���r �log_itz before_sleep_log.<locals>.log_it&