o ?Og@sdZddlZddlZdddZdddZGdd d ejZGd d d ejZGd 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). NstrictcC|dksJt|t|fSNr)binasciib2a_hexleninputerrorsr :/opt/alt/python310/lib64/python3.10/encodings/hex_codec.py hex_encode  r cCrr)ra2b_hexrrr r r hex_decoderrc@s eZdZdddZdddZdS)CodecrcC t||SN)r selfr r r r r encode z Codec.encodecCrr)rrr r r decoderz Codec.decodeNr)__name__ __module__ __qualname__rrr r r r rs rc@eZdZdddZdS)IncrementalEncoderFcC|jdksJt|Sr)r rrrr finalr r r r zIncrementalEncoder.encodeNF)rrrrr r r r rrc@r)IncrementalDecoderFcCrr)r rrr r r r r!r"zIncrementalDecoder.decodeNr#)rrrrr r r r r% r$r%c@eZdZeZdS) StreamWriterNrrrbytescharbuffertyper r r r r'%r'c@r&) StreamReaderNr(r r r r r,(r+r,c CstjdttttttddS)NhexF)namerrincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding)codecs CodecInfor rrr%r'r,r r r r getregentry-sr6r) __doc__r4rr rrrr%r'r,r6r r r r s