Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/botocore/retries/__pycache__/standard.cpython-39.pyc
Ðазад
a q�h�L � @ sZ d Z ddlZddlZddlmZmZ ddlmZmZ ddlm Z ddlm Z ddlmZm Z dZe�e�Zefd d �ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de �ZG dd� de �ZG dd� de �ZG dd� de �ZG dd� de�ZG dd � d e�ZG d!d"� d"e �ZG d#d$� d$e �Z G d%d&� d&e�Z!dS )'aC Standard retry behavior. This contains the default standard retry behavior. It provides consistent behavior with other AWS SDKs. The key base classes uses for retries: * ``BaseRetryableChecker`` - Use to check a specific condition that indicates a retry should happen. This can include things like max attempts, HTTP status code checks, error code checks etc. * ``RetryBackoff`` - Use to determine how long we should backoff until we retry a request. This is the class that will implement delay such as exponential backoff. * ``RetryPolicy`` - Main class that determines if a retry should happen. It can combine data from a various BaseRetryableCheckers to make a final call as to whether or not a retry should happen. It then uses a ``BaseRetryBackoff`` to determine how long to delay. * ``RetryHandler`` - The bridge between botocore's event system used by endpoint.py to manage retries and the interfaces defined in this module. This allows us to define an API that has minimal coupling to the event based API used by botocore. � N)�ConnectionError�HTTPClientError)�ReadTimeoutError�ConnectTimeoutError)�quota)�special)�BaseRetryBackoff�BaseRetryableChecker� c C sz t t�� �}| jjj}|�� }| jj�d| |j � t tt|d�t � d�t� |d�}d| }| jjjd| |j|d� |S )Nz after-call.%s)�max_attempts)� retry_checker� retry_backoff)�retry_policy�retry_event_adapter�retry_quotazretry-config-%szneeds-retry.%s)� unique_id)�RetryQuotaCheckerr Z RetryQuota�metaZ service_model� service_idZ hyphenize�events�register�release_retry_quota�RetryHandler�RetryPolicy�StandardRetryConditions�ExponentialBackoff�RetryEventAdapter�needs_retry)�clientr r r Zservice_event_name�handlerr � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/botocore/retries/standard.py�register_retry_handler'