HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //proc/self/root/lib/python3.6/site-packages/botocore/retries/__pycache__/special.cpython-36.pyc
3

�T_K�@sRdZddlZddlmZddlmZeje�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}||jkrdS|j�}|dkS)NFZIDPCommunicationError)�operation_model�
service_model�service_name�
_SERVICE_NAMEZget_error_code)�self�contextrZ
error_code�r�/usr/lib/python3.6/special.py�is_retryables


z'RetryIDPCommunicationError.is_retryableN)�__name__�
__module__�__qualname__r	rrrrr
rsrc@seZdZdZdZdd�ZdS)�RetryDDBChecksumErrorzx-amz-crc32ZdynamodbcCst|jjj}||jkrdS|jdkr&dS|jjj|j�}|dkrBdSt|jj	�d@}|t
|�krptjd||�dSdS)NFl��z@DynamoDB crc32 checksum does not match, expected: %s, actual: %sT)
rrrr	Z
http_responseZheaders�get�_CHECKSUM_HEADERrZcontent�int�logger�debug)r
rrZchecksumZactual_crc32rrr
r#s


z"RetryDDBChecksumError.is_retryableN)rrrrr	rrrrr
rsr)�__doc__ZloggingZbinasciirZbotocore.retries.baserZ	getLoggerrrrrrrrr
�<module>s