Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/s3transfer/__pycache__/ |
Upload File : |
o �y�`-= � @ s� d dl Z d dlZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d d� de�ZG dd � d e�Z G dd� de�Z G dd� de�ZdS )� Nc s e Zd Z� fdd�Z� ZS )�RequestExceededExceptionc s, || _ || _d||f }tt| ��|� dS )a� Error when requested amount exceeds what is allowed The request that raised this error should be retried after waiting the time specified by ``retry_time``. :type requested_amt: int :param requested_amt: The originally requested byte amount :type retry_time: float :param retry_time: The length in time to wait to retry for the requested amount z<Request amount %s exceeded the amount available. Retry in %sN)� requested_amt� retry_time�superr �__init__)�selfr r �msg�� __class__� �6/usr/lib/python3/dist-packages/s3transfer/bandwidth.pyr s ��z!RequestExceededException.__init__)�__name__� __module__�__qualname__r � __classcell__r r r r r s r c @ s e Zd ZdZdS )�RequestTokenzDA token to pass as an identifier when consuming from the LeakyBucketN)r r r �__doc__r r r r r ( s r c @ s e Zd Zdd� Zdd� ZdS )� TimeUtilsc C s t � � S )zgGet the current time back :rtype: float :returns: The current time in seconds )�time�r r r r r . s zTimeUtils.timec C s t �|�S )zwSleep for a designated time :type value: float :param value: The time to sleep for in seconds )r �sleep)r �valuer r r r 6 s zTimeUtils.sleepN)r r r r r r r r r r - s r c @ s"