Viewing File: /opt/alt/python35/lib64/python3.5/encodings/__pycache__/quopri_codec.cpython-35.pyc



¯ÕYfõã@sßdZddlZddlZddlmZddd„Zddd„ZGd	d
„d
ejƒZGdd„dejƒZGd
d„dej	ƒZ	Gdd„deej
ƒZ
Gdd„deejƒZdd„ZdS)zQCodec for quoted-printable encoding.

This codec de/encodes from bytes to bytes.
éN)ÚBytesIOÚstrictcCsS|dkst‚t|ƒ}tƒ}tj||ddƒ|jƒt|ƒfS)NrZ	quotetabsT)ÚAssertionErrorrÚquopriÚencodeÚgetvalueÚlen)ÚinputÚerrorsÚfÚg©r
ú;/opt/alt/python35/lib64/python3.5/encodings/quopri_codec.pyÚ
quopri_encode
s
	rcCsM|dkst‚t|ƒ}tƒ}tj||ƒ|jƒt|ƒfS)Nr)rrrÚdecoderr)r	r
rrr
r
rÚ
quopri_decodes
	rc@s.eZdZddd„Zddd„ZdS)ÚCodecrcCs
t||ƒS)N)r)Úselfr	r
r
r
rrszCodec.encodecCs
t||ƒS)N)r)rr	r
r
r
rrszCodec.decodeN)Ú__name__Ú
__module__Ú__qualname__rrr
r
r
rrsrc@seZdZddd„ZdS)ÚIncrementalEncoderFcCst||jƒdS)Nr)rr
)rr	Úfinalr
r
rrszIncrementalEncoder.encodeN)rrrrr
r
r
rrsrc@seZdZddd„ZdS)ÚIncrementalDecoderFcCst||jƒdS)Nr)rr
)rr	rr
r
rr#szIncrementalDecoder.decodeN)rrrrr
r
r
rr"src@seZdZeZdS)ÚStreamWriterN)rrrÚbytesÚcharbuffertyper
r
r
rr&src@seZdZeZdS)ÚStreamReaderN)rrrrrr
r
r
rr)srcCs:tjdddtdtdtdtdtdtd	d
ƒS)NÚnamerrrÚincrementalencoderÚincrementaldecoderÚstreamwriterÚstreamreaderÚ_is_text_encodingF)ÚcodecsÚ	CodecInforrrrrrr
r
r
rÚgetregentry.s	r&)
Ú__doc__r$rÚiorrrrrrrrr&r
r
r
rÚ<module>s
Back to Directory File Manager