• File: hex_codec.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/encodings/__pycache__/hex_codec.cpython-37.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.35 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Nj@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|fS)Nr)AssertionErrorbinasciib2a_hexlen)inputerrorsr	8/opt/alt/python37/lib64/python3.7/encodings/hex_codec.py
hex_encode
srcCs|dkstt|t|fS)Nr)rra2b_hexr)rrr	r	r

hex_decodesr
c@s eZdZdddZdddZdS)	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@seZdZdddZdS)IncrementalEncoderFcCs|jdkstt|S)Nr)rrrr)rrfinalr	r	r
rszIncrementalEncoder.encodeN)F)rrrrr	r	r	r
rsrc@seZdZdddZdS)IncrementalDecoderFcCs|jdkstt|S)Nr)rrrr)rrrr	r	r
r!szIncrementalDecoder.decodeN)F)rrrrr	r	r	r
r src@seZdZeZdS)StreamWriterN)rrrbytescharbuffertyper	r	r	r
r%src@seZdZeZdS)StreamReaderN)rrrrrr	r	r	r
r(src
CstjdttttttddS)NhexF)namerrincrementalencoderincrementaldecoder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