VcdZddlZddlZddZddZGddejZGdd ejZGd d ejZGd d eejZGddeej Z dZ 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). NstrictcX|dksJtj|t|fSNr)binasciib2a_hexleninputerrorss ,/usr/lib64/python3.11/encodings/hex_codec.py hex_encoder / X   U # #SZZ 00cX|dksJtj|t|fSr)ra2b_hexrr s r hex_decoderrrceZdZddZddZdS)Codecrc"t||SN)r selfr r s r encodez Codec.encode%(((rc"t||Sr)rrs r decodez Codec.decoderrNr)__name__ __module__ __qualname__rrrr rrs<))))))))))rrceZdZddZdS)IncrementalEncoderFcD|jdksJtj|Sr)r rrrr finals r rzIncrementalEncoder.encode&{h&&&&&&&rNF)rrr rr!rr r#r#(''''''rr#ceZdZddZdS)IncrementalDecoderFcD|jdksJtj|Sr)r rrr%s r rzIncrementalDecoder.decode!r'rNr()rrr rr!rr r+r+ r)rr+ceZdZeZdS) StreamWriterNrrr bytescharbuffertyper!rr r.r.%NNNrr.ceZdZeZdS) StreamReaderNr/r!rr r4r4(r2rr4c vtjdtttt t tdS)NhexF)namerrincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding)codecs CodecInfor rr#r+r.r4r!rr getregentryr?-s4   --!!    rr) __doc__r=rr rrr#r+r.r4r?r!rr rAsH 11111111)))))FL))) '''''2''' '''''2''' 5&-5&-     r