관리-도구
편집 파일: tornadoweb.cpython-310.pyc
o ƚRea � @ s| d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlmZ ej r/d dl mZ e�d�Z G d d � d e�ZdS )� N)�BaseRetrying)� DoAttempt)�DoSleep)�RetryCallState)�gen)�Future�_RetValTc sV e Zd Zejfdddejddf� fdd� Zejdd d ejdejddfdd ��Z � Z S )�TornadoRetrying�sleepz&typing.Callable[[float], Future[None]]�kwargs�returnNc s t � jdi |�� || _d S )N� )�super�__init__r )�selfr r �� __class__r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/tenacity/tornadoweb.pyr s zTornadoRetrying.__init__�fnzhtyping.Callable[..., typing.Union[typing.Generator[typing.Any, typing.Any, _RetValT], Future[_RetValT]]]�argsz2typing.Generator[typing.Any, typing.Any, _RetValT]c o s� � | � � t| |||d�} | j|d�}t|t�r:z ||i |��V }W n ty3 |�t�� � Y nw |� |� nt|t �rJ|�� | �|�V nt �|��q)N)�retry_objectr r r T)�retry_state)�beginr �iter� isinstancer � BaseException� set_exception�sys�exc_info� set_resultr �prepare_for_next_attemptr r �Return)r r r r r �do�resultr r r �__call__$ s"