Current File : //proc/self/root/usr/lib/python3/dist-packages/botocore/retries/__pycache__/special.cpython-312.pyc |
�
P��e � �x � d Z ddlZddlmZ ddlmZ ej e� Z G d� de� Z G d� de� Z
y) z�Special cased retries.
These are additional retry cases we still have to handle from the legacy
retry handler. They don't make sense as part of the standard mode retry
module. Ideally we should be able to remove this module.
� N)�crc32)�BaseRetryableCheckerc � � e Zd ZdZd� Zy)�RetryIDPCommunicationError�stsc � � |j j j }|| j k7 ry|j � }|dk( S )NF�IDPCommunicationError)�operation_model�
service_model�service_name�
_SERVICE_NAME�get_error_code)�self�contextr �
error_codes �:/usr/lib/python3/dist-packages/botocore/retries/special.py�is_retryablez'RetryIDPCommunicationError.is_retryable sD � ��.�.�<�<�I�I���4�-�-�-���+�+�-�
��4�4�4� N)�__name__�
__module__�__qualname__r
r � r r r r s � ��M�5r r c � � e Zd ZdZdZd� Zy)�RetryDDBChecksumErrorzx-amz-crc32�dynamodbc �r � |j j j }|| j k7 ry|j �y|j j
j
| j � }|�yt |j j � dz }|t |� k7 rt j d||� yy )NFl �� z@DynamoDB crc32 checksum does not match, expected: %s, actual: %sT)
r
r r r
�
http_response�headers�get�_CHECKSUM_HEADERr �content�int�logger�debug)r r r �checksum�actual_crc32s r r z"RetryDDBChecksumError.is_retryable! s� � ��.�.�<�<�I�I���4�-�-�-��� � �(���(�(�0�0�4�4�T�5J�5J�K������W�2�2�:�:�;�j�H���3�x�=�(��L�L�+���
� � )r N)r r r r r
r r r r r r s � �$���M�r r )�__doc__�logging�binasciir �botocore.retries.baser � getLoggerr r# r r r r r �<module>r, sA ��� � � 6� �� � �8� $��
5�!5� 5��0� r