U e5d@sdZddlZddlZddlmZdddZdddZGd d d ejZGd d d ejZGd ddej Z Gdddeej Z Gdddeej Z ddZ dS)zQCodec for quoted-printable encoding. This codec de/encodes from bytes to bytes. N)BytesIOstrictcCs:|dks tt|}t}tj||dd|t|fS)NrT)Z quotetabs)AssertionErrorrquopriencodegetvalueleninputerrorsfgr./usr/lib64/python3.8/encodings/quopri_codec.py quopri_encode s  rcCs6|dks tt|}t}t|||t|fS)Nr)rrrdecoderrr rrr quopri_decodes   rc@s eZdZdddZdddZdS) CodecrcCs t||SN)rselfr r rrrrsz Codec.encodecCs t||Sr)rrrrrrsz Codec.decodeN)r)r)__name__ __module__ __qualname__rrrrrrrs rc@seZdZdddZdS)IncrementalEncoderFcCst||jdSNr)rr rr finalrrrrszIncrementalEncoder.encodeN)F)rrrrrrrrrsrc@seZdZdddZdS)IncrementalDecoderFcCst||jdSr)rr rrrrr#szIncrementalDecoder.decodeN)F)rrrrrrrrr"src@seZdZeZdS) StreamWriterNrrrbytescharbuffertyperrrrr&src@seZdZeZdS) StreamReaderNr rrrrr#)sr#c CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encoding)codecs CodecInforrrrrr#rrrr getregentry.sr,)r)r) __doc__r*riorrrrrrrr#r,rrrrs