AlkantarClanX12

Your IP : 3.133.148.76


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.opt-1.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�B�tj|�t|�fS�N)�binascii�b2a_hex�len��input�errorss  �:/opt/alt/python312/lib64/python3.12/encodings/hex_codec.py�
hex_encoder
������U�#�S��Z�0�0�c�B�tj|�t|�fSr)r�a2b_hexrrs  r�
hex_decoderr
rc��eZdZdd�Zdd�Zy)�Codecc��t||�Sr)r��selfr	r
s   r�encodezCodec.encode����%��(�(rc��t||�Sr)rrs   r�decodezCodec.decoderrN��strict)�__name__�
__module__�__qualname__rr�rrrrs��)�)rrc��eZdZdd�Zy)�IncrementalEncoderc�,�tj|�Sr)rr�rr	�finals   rrzIncrementalEncoder.encode�������&�&rN�F)rrrrr rrr"r"���'rr"c��eZdZdd�Zy)�IncrementalDecoderc�,�tj|�Sr)rrr$s   rrzIncrementalDecoder.decode!r&rNr')rrrrr rrr*r* r(rr*c��eZdZeZy)�StreamWriterN�rrr�bytes�charbuffertyper rrr-r-%����Nrr-c��eZdZeZy)�StreamReaderNr.r rrr3r3(r1rr3c
�l�tjdtttt
ttd��S)N�hexF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInforrr"r*r-r3r rr�getregentryr>-s-�����
���-�-�!�!��	�	rr)�__doc__r<rrrrr"r*r-r3r>r rr�<module>r@s}�����1�1�)�F�L�L�)�'��2�2�'�
'��2�2�'�
�5�&�-�-���5�&�-�-��

r