Viewing File: /opt/alt/python38/lib64/python3.8/encodings/__pycache__/hex_codec.cpython-38.pyc

U

,a@sdZddlZddlZdddZdddZGdd	d	ejZGd
ddejZGdd
d
ejZGdddeejZGdddeej	Z	ddZ
dS)zPython '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).
NstrictcCs|dkstt|t|fSNr)AssertionErrorbinasciib2a_hexleninputerrorsr8/opt/alt/python38/lib64/python3.8/encodings/hex_codec.py
hex_encode
sr
cCs|dkstt|t|fSr)rra2b_hexrrrrr
hex_decodesrc@s eZdZdddZdddZdS)	CodecrcCs
t||SN)r
selfr	r
rrrencodeszCodec.encodecCs
t||Sr)rrrrrdecodeszCodec.decodeN)r)r)__name__
__module____qualname__rrrrrrrs
rc@seZdZdddZdS)IncrementalEncoderFcCs|jdkstt|Sr)r
rrrrr	finalrrrrszIncrementalEncoder.encodeN)F)rrrrrrrrrsrc@seZdZdddZdS)IncrementalDecoderFcCs|jdkstt|Sr)r
rrrrrrrr!szIncrementalDecoder.decodeN)F)rrrrrrrrr src@seZdZeZdS)StreamWriterNrrrbytescharbuffertyperrrrr%src@seZdZeZdS)StreamReaderNrrrrrr!(sr!c
CstjdttttttddS)NhexF)namerrincrementalencoderincrementaldecoderstreamwriterstreamreader_is_text_encoding)codecs	CodecInfor
rrrrr!rrrrgetregentry-sr+)r)r)__doc__r)rr
rrrrrr!r+rrrr<module>s


Back to Directory File Manager