관리-도구
편집 파일: __init__.cpython-310.pyc
o ƚReQG � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZm Z d dl mZ d dlm Z ddlmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ ddlm%Z% ddl&m'Z' ddl&m(Z( ddl&m)Z) ddl&m*Z* ddl&m+Z+ dd l&m,Z, dd!l&m-Z- dd"l&m.Z. dd"l&m.Z/ dd#l0m1Z1 dd$l0m2Z2 dd%l3m4Z4 dd&l3m5Z5 dd'l6m7Z7 dd(l6m8Z8 dZ9ej:�rd dl;Z;dd)l&m<Z< dd*lm=Z= ej>d+ej?d,�Z@e�>d-�ZAejBd.e@d/e@fd0d1��ZejBd2ejCd3ejCd/ej?e@ge@f fd4d1��Zd2ejCd3ejCd/ejDe@ej?e@ge@f f fd5d1�ZG d6d7� d7eE�ZFeG� ZHG d8d9� d9�ZIG d:d;� d;eJ�ZKG d<d=� d=�ZLG d>d?� d?eL�ZMeG� ZNd@ejDejCeGf dAejCd/ejCfdBdC�ZOG dDdE� dEeE�ZPG dFdG� dG�ZQG dHdI� dIe�ZRG dJdK� dKeR�ZSG dLdM� dMejT�ZTG dNdO� dO�ZUd dPlVmWZW e9�r�d dQlXmYZY dS dS )R� N)�ABC�abstractmethod)�futures)�iscoroutinefunction� )� retry_base)� retry_all)�retry_always)� retry_any)�retry_if_exception)�retry_if_exception_type)�retry_if_not_exception_type)�retry_if_not_result)�retry_if_result)�retry_never)�retry_unless_exception_type)�retry_if_exception_message)�retry_if_not_exception_message��sleep)�sleep_using_event)�stop_after_attempt)�stop_after_delay)�stop_all)�stop_any)� stop_never)�stop_when_event_set)� wait_chain)�wait_combine)�wait_exponential)� wait_fixed)�wait_incrementing)� wait_none)�wait_random)�wait_random_exponential)� before_log)�before_nothing)� after_log)� after_nothing)�before_sleep_log)�before_sleep_nothing)� wait_base)� stop_base� WrappedFn)�bound�_RetValT�fn�returnc C � d S �N� )r0 r4 r4 ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/tenacity/__init__.py�retrya � r6 �dargs�dkwc O r2 r3 r4 �r8 r9 r4 r4 r5 r6 f r7 c sB t � �dkrt� d �rt� � d �S dtdtf� �fdd�}|S )z�Wrap a function with a new `Retrying` object. :param dargs: positional arguments passed to Retrying object :param dkw: keyword arguments passed to the Retrying object r r �fr1 c s� t | t�rt�d| jj� d| jj� d�� t| �r!t� i ���}ntr7t tj d�r7tj �| �r7t� i ���}nt � i ���}|�| �S )NzGot retry_base instance (zQ) as callable argument, this will probably hang indefinitely (did you mean retry=z(...)?)�is_coroutine_function)� isinstancer �warnings�warn� __class__�__name__r � AsyncRetrying�tornado�hasattr�genr<