AlkantarClanX12

Your IP : 18.119.141.115


Current Path : /opt/alt/python37/lib64/python3.7/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/encodings/__pycache__/hex_codec.cpython-37.pyc

B

� 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	�8/opt/alt/python37/lib64/python3.7/encodings/hex_codec.py�
hex_encode
srcCs|dkst�t�|�t|�fS)Nr)rr�a2b_hexr)rrr	r	r
�
hex_decodesr
c@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S)N)r)�selfrrr	r	r
�encodeszCodec.encodecCs
t||�S)N)r
)rrrr	r	r
�decodeszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rrr	r	r	r
rs
rc@seZdZddd�ZdS)�IncrementalEncoderFcCs|jdkst�t�|�S)Nr)rrrr)rr�finalr	r	r
rszIncrementalEncoder.encodeN)F)rrrrr	r	r	r
rsrc@seZdZddd�ZdS)�IncrementalDecoderFcCs|jdkst�t�|�S)Nr)rrrr)rrrr	r	r
r!szIncrementalDecoder.decodeN)F)rrrrr	r	r	r
r src@seZdZeZdS)�StreamWriterN)rrr�bytes�charbuffertyper	r	r	r
r%src@seZdZeZdS)�StreamReaderN)rrrrrr	r	r	r
r(src
Cstjdttttttdd�S)N�hexF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInforr
rrrrr	r	r	r
�getregentry-sr%)r)r)�__doc__r#rrr
rrrrrr%r	r	r	r
�<module>s