Your IP : 13.58.61.176


Current Path : /opt/alt/python312/lib64/python3.12/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/encodings/__pycache__/hex_codec.cpython-312.pyc

�

�Q�f����dZddlZddlZdd�Zdd�ZGd�dej
�ZGd�dej�ZGd	�d
ej�ZGd�deej�ZGd
�deej�Z	d�Z
y)z�Python 'hex_codec' Codec - 2-digit hex content transfer encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
�Nc�P�|dk(sJ�tj|�t|�fS�N�strict)�binascii�b2a_hex�len��input�errorss  �:/opt/alt/python312/lib64/python3.12/encodings/hex_codec.py�
hex_encoder

�*���X�������U�#�S��Z�0�0�c�P�|dk(sJ�tj|�t|�fSr)r�a2b_hexrr	s  r�
hex_decoderrrc��eZdZdd�Zdd�Zy)�Codecc��t||�S�N)r
��selfr
rs   r�encodezCodec.encode����%��(�(rc��t||�Sr)rrs   r�decodezCodec.decoderrN�r)�__name__�
__module__�__qualname__rr�rrrrs��)�)rrc��eZdZdd�Zy)�IncrementalEncoderc�N�|jdk(sJ�tj|�Sr)rrr�rr
�finals   rrzIncrementalEncoder.encode�%���{�{�h�&�&�&�����&�&rN�F)rrr rr!rrr#r#���'rr#c��eZdZdd�Zy)�IncrementalDecoderc�N�|jdk(sJ�tj|�Sr)rrrr%s   rrzIncrementalDecoder.decode!r'rNr()rrr rr!rrr+r+ r)rr+c��eZdZeZy)�StreamWriterN�rrr �bytes�charbuffertyper!rrr.r.%����Nrr.c��eZdZeZy)�StreamReaderNr/r!rrr4r4(r2rr4c
�l�tjdtttt
ttd��S)N�hexF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInfor
rr#r+r.r4r!rr�getregentryr?-s-�����
���-�-�!�!��	�	rr)�__doc__r=rr
rrr#r+r.r4r?r!rr�<module>rAs}�����1�1�)�F�L�L�)�'��2�2�'�
'��2�2�'�
�5�&�-�-���5�&�-�-��

r

?>