File: //usr/lib64/python3.8/__pycache__/quopri.cpython-38.opt-1.pyc
U
e5dT @ s d Z ddddgZdZdZdZdZzd d
lmZmZ W n e k
rP dZdZY nX dd
Z
dd ZdddZdddZ
dddZdddZdd Zdd Zdd Zedkre dS ) zHConversions to/from quoted-printable transport encoding as per RFC 1521.encodedecodeencodestringdecodestring =L s 0123456789ABCDEF )a2b_qpb2a_qpNc C s: | dkr|S | dkr|S | t kp8d| ko2dkn S )zDecide whether a particular byte ordinal needs to be quoted.
The 'quotetabs' flag indicates whether embedded tabs and spaces should be
quoted. Note that line-ending tabs and spaces are always encoded, as per
RFC 1521.
_ ~)ESCAPE)c quotetabsheader r /usr/lib64/python3.8/quopri.pyneedsquoting s
r c C s( t | } ttt| d t| d f S )zQuote a single character. )ordr bytesHEXr r r r quote$ s r Fc
C s2 t dk r,| }t |||d}|| dS |dfdd}d}| }|sNqg } d}
|dd dkrv|dd }d}
|D ]D}t|f}t|||rt|}|r|dkr| d qz| | qz|dk r|| t | }t
|tkr||dtd
dd |td
d }q|}q>|dk r.|||
d dS )
av Read 'input', apply quoted-printable encoding, and write to 'output'.
'input' and 'output' are binary file objects. The 'quotetabs' flag
indicates whether embedded tabs and spaces should be quoted. Note that
line-ending tabs and spaces are always encoded, as per RFC 1521.
The 'header' flag indicates whether we are encoding spaces as _ as per RFC
1522.Nr r
c S sj | r<| dd dkr<| | d d t| dd | n*| dkrX| t| | n| | | d S )Nr .)writer )soutputlineEndr r r r ; s
(zencode.<locals>.writer r r
r s =
)r# )r
readr readliner r r appendEMPTYSTRINGjoinlenMAXLINESIZE)
inputr"