Your IP : 13.58.84.207
o
6��f� � @ s� d Z ddlZddlZddd�Zddd�ZG dd � d ej�ZG d
d� dej�ZG dd
� d
ej�ZG dd� deej�ZG dd� deej �Z dd� 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).
� N�strictc C � |dksJ �t �| �t| �fS �Nr )�binascii�b2a_hex�len��input�errors� r �:/opt/alt/python310/lib64/python3.10/encodings/hex_codec.py�
hex_encode
� r
c C r r )r �a2b_hexr r r r r �
hex_decode r r c @ s e Zd Zddd�Zddd�ZdS )�Codecr c C �
t ||�S �N)r
��selfr r
r r r �encode �
zCodec.encodec C r r )r r r r r �decode r zCodec.decodeN�r )�__name__�
__module__�__qualname__r r r r r r r s
r c @ � e Zd Zddd�ZdS )�IncrementalEncoderFc C � | j dksJ �t�|�S r )r
r r �r r �finalr r r r �
zIncrementalEncoder.encodeN�F)r r r r r r r r r � r c @ r )�IncrementalDecoderFc C r r )r
r r r r r r r ! r"