python (3.11.7)
ed d Z g dZdZdZdZdZ ddlmZmZ n# e $ r dZdZY nw xY wd Z
d
ZddZdd
Z
ddZddZd Zd Zd Zedk r e dS dS )zHConversions to/from quoted-printable transport encoding as per RFC 1521.)encodedecodeencodestringdecodestring =L s 0123456789ABCDEF )a2b_qpb2a_qpNc V | dv r|S | dk r|S | t k pd| cxk odk nc 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 quotetabsheaders :/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/quopri.pyneedsquotingr sO F{{Dyy
;1tq0000D000011r c t | } t t t | dz t | dz f z S )zQuote a single character. )ordr bytesHEXr s r quoter $ s7 AAE3q"u:s1R4y12222r Fc t =| }t ||| }| | dS |dfd}d} | }|sng } d}
|dd dk r|dd }d}
|D ]e}t |f }t ||| rt
| }|r|dk r| d P| | f| || t | }t | t k rG ||dt dz
d
|t dz
d }t | t k G|}(| |||
dS 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 | rF| dd dv r:| | d d t | dd z |z d S | dk r'| t | |z d S | | |z d S )Nr
.)writer )soutputlineEnds r r$ zencode.<locals>.write; s
&2336!!LL3B3%"##--/'9:::::
$YYLLqG+,,,,,LLW%%%%%r r r"