VccsdZddlZddlZddZddZGddejZGdd ejZGd d ejZGd d eejZGddeej Z dZ dS)zPython 'base64_codec' Codec - base64 content transfer encoding. This codec de/encodes from bytes to bytes. Written by Marc-Andre Lemburg (mal@lemburg.com). iNstrictcHtj|t|fSN)base64 encodebytesleninputerrors //usr/lib64/python3.11/encodings/base64_codec.py base64_encoder   u % %s5zz 22crr)r decodebytesrrr r base64_decoderr r cseZdZddZddZdS)Codecrc"t||Sr)r selfrr r encodez Codec.encodeUF+++r crr)rrrr decodez Codec.decoderr Nr)__name__ __module__ __qualname__rrr r rrs<,,,,,,,,,,r rceZdZddZdS)IncrementalEncoderFc*tj|Sr)rrrrZfinalrr rzIncrementalEncoder.encode!%(((r NF)rrrrrr r rr())))))r rcr)IncrementalDecoderFcrr)rrr rr rzIncrementalDecoder.decode!r!r Nr")rrrrrr r r$r$ r#r r$ceZdZeZdS) StreamWriterNrrrZbytesZcharbuffertyperr r r&r&%NNNr r&cr%) StreamReaderNr'rr r r)r)(r(r r)c svtjdtttt t tdS)NrF)ZnamerrZincrementalencoderZincrementaldecoderZ streamwriterZ streamreaderZ_is_text_encoding)codecsZ CodecInfor rrr$r&r)rr r getregentryr+-s4   --!!    r r) Z__doc__r*rr rrrr$r&r)r+rr r r,sH 33333333,,,,,FL,,, )))))2))) )))))2))) 5&-5&-     r