U e5d@sdZddlZddlZdddZdddZGdd d ejZGd d d ejZGd d d ejZGdddeejZGdddeej Z ddZ 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). NstrictcCs|dks tt|t|fSNr)AssertionErrorbase64 encodebytesleninputerrorsr ./usr/lib64/python3.8/encodings/base64_codec.py base64_encode s r cCs|dks tt|t|fSr)rr decodebytesrrr r r base64_decodes rc@s eZdZdddZdddZdS) CodecrcCs t||SN)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@seZdZdddZdS)IncrementalEncoderFcCs|jdkstt|Sr)r rrrrr finalr r r rszIncrementalEncoder.encodeN)F)rrrrr r r r rsrc@seZdZdddZdS)IncrementalDecoderFcCs|jdkstt|Sr)r rrrrr r r r!szIncrementalDecoder.decodeN)F)rrrrr r r r r src@seZdZeZdS) StreamWriterNrrrbytescharbuffertyper r r r r%src@seZdZeZdS) StreamReaderNrr r r r r!(sr!c CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding)codecs CodecInfor rrrrr!r r r r getregentry-sr*)r)r) __doc__r(rr rrrrrr!r*r r r r s