Hacked By AnonymousFox
�
�Q�f� � � � d Z ddlZddlZdd�Zdd�Z G d� dej
� Z G d� dej � Z G d � d
ej � Z G d� deej � Z G d
� 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 � t j | � 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 � t j | � t | � fS r )r �a2b_hexr r s r �
hex_decoder r
r c � � e Zd Zdd�Zdd�Zy)�Codecc � � t ||� S r )r ��selfr r
s r �encodezCodec.encode � � ��%��(�(r c � � t ||� S r )r r s r �decodezCodec.decode r r N��strict)�__name__�
__module__�__qualname__r r � r r r r s � �)�)r r c � � e Zd Zdd�Zy)�IncrementalEncoderc �, � t j |� S r )r r �r r �finals r r zIncrementalEncoder.encode � � �����&�&r N�F)r r r r r r r r"