관리-도구
편집 파일: before_sleep.cpython-311.pyc
� �Ret � �| � 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 ��/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.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 j rK| j � � � }d|j j � d|� �}}�r| j � � � }n d}nd| j � � � }}d}�� �dt j | j � � � d| j j � d|� d|� d � |� � � d S )N�raisedz: F�returnedz Retrying z in z seconds as it � �.)r )�outcome�failed� exception� __class__�__name__�result�logr �get_callback_name�fn�next_action�sleep)r �ex�verb�value�local_exc_infor r r s ���r �log_itz before_sleep_log.<locals>.log_it&