U e5däã@s’dZddlZddlZddd„Zddd„ZGdd „d ejƒZGd d „d ejƒZGd d „d ejƒZGdd„deejƒZGdd„deej ƒZ dd„Z dS)z Python '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). éNÚstrictcCs|dks t‚t |¡t|ƒfS©Nr)ÚAssertionErrorÚbinasciiÚb2a_hexÚlen©ÚinputÚerrors©r ú+/usr/lib64/python3.8/encodings/hex_codec.pyÚ hex_encode s r cCs|dks t‚t |¡t|ƒfSr)rrÚa2b_hexrrr r r Ú hex_decodes rc@s eZdZddd„Zddd„ZdS) ÚCodecrcCs t||ƒS©N)r ©Úselfr r r r r Úencodesz Codec.encodecCs t||ƒSr)rrr r r Údecodesz Codec.decodeN)r)r)Ú__name__Ú __module__Ú __qualname__rrr r r r rs rc@seZdZddd„ZdS)ÚIncrementalEncoderFcCs|jdkst‚t |¡Sr)r rrr©rr Úfinalr r r rszIncrementalEncoder.encodeN)F)rrrrr r r r rsrc@seZdZddd„ZdS)ÚIncrementalDecoderFcCs|jdkst‚t |¡Sr)r rrrrr r r r!szIncrementalDecoder.decodeN)F)rrrrr r r r r src@seZdZeZdS)Ú StreamWriterN©rrrÚbytesÚcharbuffertyper r r r r%src@seZdZeZdS)Ú StreamReaderNrr r r r r!(sr!c Cstjdttttttdd�S)NÚhexF)ÚnamerrÚincrementalencoderÚincrementaldecoderÚ streamwriterÚ streamreaderÚ_is_text_encoding)ÚcodecsÚ CodecInfor rrrrr!r r r r Ú getregentry-sør+)r)r) Ú__doc__r)rr rrrrrr!r+r r r r Ús