관리-도구
편집 파일: before_sleep.cpython-311.pyc
� �܋fD � �| � d dl Z d dlmZ e j r d dlZd dlmZ dd�Z dd d dedede j dgdf fd �Z dS )� N)�_utils)�RetryCallState�retry_stater �returnc � � dS )z'Before call strategy that does nothing.N� )r s �X/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_vendor/tenacity/before_sleep.py�before_sleep_nothingr s � � � � F�loggerzlogging.Logger� log_level�exc_infoc � � ��� d��� fd�}|S )z:Before call strategy that logs to some logger the attempt.r r r Nc �� �� | j �t d� � �| j �t d� � �| j j rK| j � � � }d|j j � d|� �}}�r| j � � � }n d}nd| j � � � }}d}| j �d}nt j | j � � }�� �d|� d | j j � d |� d|� d� |� � � d S )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&