관리-도구
편집 파일: before_sleep.cpython-38.pyc
U ʗRet � @ sd d dl Z d dlmZ e jr.d dlZd dlmZ ddd�dd�Zd d eee j dgdf d �dd�Z dS )� N)�_utils)�RetryCallStater ��retry_state�returnc C s dS )z'Before call strategy that does nothing.N� )r r r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/tenacity/before_sleep.py�before_sleep_nothing s r Fzlogging.Logger)�logger� log_level�exc_infor c s ddd�� ��fdd�}|S )z:Before call strategy that logs to some logger the attempt.r Nr c s� | j jr@| j �� }d|jj� d|� � }}� r:| j �� }qTd}nd| j �� }}d}�j�dt�| j �� d| j j� d|� 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_info�r r r r r �log_it&