Your IP : 18.220.194.29


Current Path : /opt/alt/python35/lib64/python3.5/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/encodings/__pycache__/hex_codec.cpython-35.opt-1.pyc



��Yf��@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�strictcCstj|�t|�fS)N)�binascii�b2a_hex�len)�input�errors�r�8/opt/alt/python35/lib64/python3.5/encodings/hex_codec.py�
hex_encode
sr
cCstj|�t|�fS)N)r�a2b_hexr)rrrrr	�
hex_decodesrc@s.eZdZddd�Zddd�ZdS)�CodecrcCs
t||�S)N)r
)�selfrrrrr	�encodeszCodec.encodecCs
t||�S)N)r)rrrrrr	�decodeszCodec.decodeN)�__name__�
__module__�__qualname__rrrrrr	r
sr
c@seZdZddd�ZdS)�IncrementalEncoderFcCs
tj|�S)N)rr)rr�finalrrr	rszIncrementalEncoder.encodeN)rrrrrrrr	rsrc@seZdZddd�ZdS)�IncrementalDecoderFcCs
tj|�S)N)rr)rrrrrr	r!szIncrementalDecoder.decodeN)rrrrrrrr	r src@seZdZeZdS)�StreamWriterN)rrr�bytes�charbuffertyperrrr	r%src@seZdZeZdS)�StreamReaderN)rrrrrrrrr	r(srcCs:tjdddtdtdtdtdtdtd	d
�S)N�name�hexrr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encodingF)�codecs�	CodecInfor
rrrrrrrrr	�getregentry-s	r$)�__doc__r"rr
rr
rrrrr$rrrr	�<module>s

?>