3 \@sddlZddlZdddZdddZGdddejZGd d d ejZGd d d ejZGd ddeejZGdddeejZddZ dS)NstrictcCstj|t|fS)N)base64 encodebyteslen)inputerrorsr./usr/lib64/python3.6/encodings/base64_codec.py base64_encode sr cCstj|t|fS)N)r decodebytesr)rrrrr base64_decodesr c@s eZdZdddZdddZdS) CodecrcCs t||S)N)r )selfrrrrr encodesz Codec.encodecCs t||S)N)r )rrrrrr decodesz Codec.decodeN)r)r)__name__ __module__ __qualname__rrrrrr r s r c@seZdZdddZdS)IncrementalEncoderFcCs tj|S)N)rr)rrfinalrrr rszIncrementalEncoder.encodeN)F)rrrrrrrr rsrc@seZdZdddZdS)IncrementalDecoderFcCs tj|S)N)rr )rrrrrr r!szIncrementalDecoder.decodeN)F)rrrrrrrr r src@seZdZeZdS) StreamWriterN)rrrbytescharbuffertyperrrr r%src@seZdZeZdS) StreamReaderN)rrrrrrrrr r(src CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding)codecs CodecInfor r rrrrrrrr getregentry-sr#)r)r) r!rr r r rrrrr#rrrr s