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). NstrictcCt|t|fSN)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||Sr)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 t|Sr)rrrr finalr r r r zIncrementalEncoder.encodeNF)rrrrr r r r rrc@r)IncrementalDecoderFcCrr)rrrr 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-sr5r) __doc__r3rr rrrr$r&r+r5r r r r s