�
��Vc� c s� � d Z ddlZddlZdd�Zdd�Z G d� dej � � Z G d� d ej � � Z G d
� dej � � Z G d� d
eej � � Z G d� deej � � Z d� Z
dS )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).
i N�strictc �X � |dk sJ �t j | � � t | � � fS �Nr )�binascii�b2a_hex�len��input�errors� �,/usr/lib64/python3.11/encodings/hex_codec.py�
hex_encoder
�/ � ��X�������U�#�#�S��Z�Z�0�0� c r r )r �a2b_hexr r r r
�
hex_decoder r r
c s � e Zd Zdd�Zdd�ZdS )�Codecr c �"