HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3.8/encodings/__pycache__/hex_codec.cpython-38.pyc
U

2�f��@s�dZddlZddlZddd�Zddd�ZGdd	�d	ej�ZGd
d�dej�ZGdd
�d
ej�ZGdd�deej�ZGdd�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�strictcCs|dkst�t�|�t|�fS�Nr)�AssertionError�binascii�b2a_hex�len��input�errors�r�)/usr/lib/python3.8/encodings/hex_codec.py�
hex_encode
sr
cCs|dkst�t�|�t|�fSr)rr�a2b_hexrrrrr�
hex_decodesrc@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S�N)r
��selfr	r
rrr�encodeszCodec.encodecCs
t||�Sr)rrrrr�decodeszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rrrrrrrs
rc@seZdZddd�ZdS)�IncrementalEncoderFcCs|jdkst�t�|�Sr)r
rrr�rr	�finalrrrrszIncrementalEncoder.encodeN)F)rrrrrrrrrsrc@seZdZddd�ZdS)�IncrementalDecoderFcCs|jdkst�t�|�Sr)r
rrrrrrrr!szIncrementalDecoder.decodeN)F)rrrrrrrrr src@seZdZeZdS)�StreamWriterN�rrr�bytes�charbuffertyperrrrr%src@seZdZeZdS)�StreamReaderNrrrrrr!(sr!c
Cstjdttttttdd�S)N�hexF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInfor
rrrrr!rrrr�getregentry-s�r+)r)r)�__doc__r)rr
rrrrrr!r+rrrr�<module>s