HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/botocore/retries/__pycache__/special.cpython-310.pyc
o

.&�aK�@sRdZddlZddlmZddlmZe�e�ZGdd�de�Z	Gdd�de�Z
dS)	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@seZdZdZdd�ZdS)�RetryIDPCommunicationError�stscCs(|jjj}||jkrdS|��}|dkS)NF�IDPCommunicationError)�operation_model�
service_model�service_name�
_SERVICE_NAME�get_error_code)�self�contextr	�
error_code�r�:/usr/lib/python3/dist-packages/botocore/retries/special.py�is_retryables


z'RetryIDPCommunicationError.is_retryableN)�__name__�
__module__�__qualname__r
rrrrrrsrc@seZdZdZdZdd�ZdS)�RetryDDBChecksumErrorzx-amz-crc32�dynamodbcCst|jjj}||jkrdS|jdurdS|jj�|j�}|dur!dSt|jj	�d@}|t
|�kr8t�d||�dSdS)NFl��z@DynamoDB crc32 checksum does not match, expected: %s, actual: %sT)
rrr	r
�
http_response�headers�get�_CHECKSUM_HEADERr�content�int�logger�debug)rr
r	�checksum�actual_crc32rrrr#s


��z"RetryDDBChecksumError.is_retryableN)rrrrr
rrrrrrsr)�__doc__�logging�binasciir�botocore.retries.baser�	getLoggerrrrrrrrr�<module>s