Current File : //usr/lib/python3/dist-packages/s3transfer/__pycache__/bandwidth.cpython-312.pyc |
�
�<�e= � � � d dl Z d dlZ G d� de� Z G d� d� Z G d� d� Z G d� d � Z G d
� d� Z G d� d
� Z G d� d� Z G d� d� Z
y)� Nc � � � e Zd Z� fd�Z� xZS )�RequestExceededExceptionc �d �� || _ || _ dj ||� }t �| � |� y)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 {} exceeded the amount available. Retry in {}N)�
requested_amt�
retry_time�format�super�__init__)�selfr r �msg� __class__s ��6/usr/lib/python3/dist-packages/s3transfer/bandwidth.pyr
z!RequestExceededException.__init__ s8 �� � +���$���L�S�S��:�
�� ����� )�__name__�
__module__�__qualname__r
�
__classcell__)r
s @r r r s
�� �� r r c � � e Zd ZdZy)�RequestTokenzDA token to pass as an identifier when consuming from the LeakyBucketN)r r r �__doc__� r r r r '