gdZddlZddlZddZddZGddej ZGddej ZGd d ejZGd d eejZGd deejZ dZ y)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). NcP|dk(sJtj|t|fSNstrict)binasciib2a_hexleninputerrorss :/opt/alt/python312/lib64/python3.12/encodings/hex_codec.py hex_encoder * X     U #SZ 00cP|dk(sJtj|t|fSr)ra2b_hexrr s r hex_decoderrrceZdZddZddZy)Codecct||SN)r selfr r s r encodez Codec.encode%((rct||Sr)rrs r decodez Codec.decoderrNr)__name__ __module__ __qualname__rrrr rrs ))rrceZdZddZy)IncrementalEncodercN|jdk(sJtj|Sr)r rrrr finals r rzIncrementalEncoder.encode%{{h&&&&&rNF)rrr rr!rr r#r#'rr#ceZdZddZy)IncrementalDecodercN|jdk(sJtj|Sr)r rrr%s r rzIncrementalDecoder.decode!r'rNr()rrr rr!rr r+r+ r)rr+ceZdZeZy) StreamWriterNrrr bytescharbuffertyper!rr r.r.%Nrr.ceZdZeZy) StreamReaderNr/r!rr r4r4(r2rr4c ltjdtttt t tdS)NhexF)namerrincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding)codecs CodecInfor rr#r+r.r4r!rr getregentryr?-s-    --!!  rr) __doc__r=rr rrr#r+r.r4r?r!rr rAs}11)FLL) '22' '22' 5&--5&-- r