/opt/alt/python-internal/lib64/python3.11/email/__pycache__
NameSizeModeActions
base64mime.cpython-311.opt-1.pyc43710644editdlrm
base64mime.cpython-311.opt-2.pyc26200644editdlrm
base64mime.cpython-311.pyc43710644editdlrm
charset.cpython-311.opt-1.pyc159800644editdlrm
charset.cpython-311.opt-2.pyc97090644editdlrm
charset.cpython-311.pyc160410644editdlrm
contentmanager.cpython-311.opt-1.pyc138500644editdlrm
contentmanager.cpython-311.opt-2.pyc138500644editdlrm
contentmanager.cpython-311.pyc138500644editdlrm
encoders.cpython-311.opt-1.pyc24060644editdlrm
encoders.cpython-311.opt-2.pyc20770644editdlrm
encoders.cpython-311.pyc24060644editdlrm
errors.cpython-311.opt-1.pyc86840644editdlrm
errors.cpython-311.opt-2.pyc70890644editdlrm
errors.cpython-311.pyc86840644editdlrm
feedparser.cpython-311.opt-1.pyc213130644editdlrm
feedparser.cpython-311.opt-2.pyc196720644editdlrm
feedparser.cpython-311.pyc215130644editdlrm
generator.cpython-311.opt-1.pyc224230644editdlrm
generator.cpython-311.opt-2.pyc187480644editdlrm
generator.cpython-311.pyc224230644editdlrm
header.cpython-311.opt-1.pyc269960644editdlrm
header.cpython-311.opt-2.pyc214190644editdlrm
header.cpython-311.pyc269960644editdlrm
headerregistry.cpython-311.opt-1.pyc337060644editdlrm
headerregistry.cpython-311.opt-2.pyc281120644editdlrm
headerregistry.cpython-311.pyc337720644editdlrm
iterators.cpython-311.opt-1.pyc31830644editdlrm
iterators.cpython-311.opt-2.pyc25900644editdlrm
iterators.cpython-311.pyc31830644editdlrm
message.cpython-311.opt-1.pyc590580644editdlrm
message.cpython-311.opt-2.pyc427710644editdlrm
message.cpython-311.pyc590580644editdlrm
parser.cpython-311.opt-1.pyc74040644editdlrm
parser.cpython-311.opt-2.pyc44320644editdlrm
parser.cpython-311.pyc74040644editdlrm
policy.cpython-311.opt-1.pyc125620644editdlrm
policy.cpython-311.opt-2.pyc63870644editdlrm
policy.cpython-311.pyc125620644editdlrm
quoprimime.cpython-311.opt-1.pyc112570644editdlrm
quoprimime.cpython-311.opt-2.pyc78450644editdlrm
quoprimime.cpython-311.pyc112570644editdlrm
utils.cpython-311.opt-1.pyc193310644editdlrm
utils.cpython-311.opt-2.pyc157900644editdlrm
utils.cpython-311.pyc193310644editdlrm
_encoded_words.cpython-311.opt-1.pyc91370644editdlrm
_encoded_words.cpython-311.opt-2.pyc72640644editdlrm
_encoded_words.cpython-311.pyc91370644editdlrm
_header_value_parser.cpython-311.opt-1.pyc1505740644editdlrm
_header_value_parser.cpython-311.opt-2.pyc1340240644editdlrm
_header_value_parser.cpython-311.pyc1506600644editdlrm
_parseaddr.cpython-311.opt-1.pyc243200644editdlrm
_parseaddr.cpython-311.opt-2.pyc214670644editdlrm
_parseaddr.cpython-311.pyc243200644editdlrm
_policybase.cpython-311.opt-1.pyc197210644editdlrm
_policybase.cpython-311.opt-2.pyc105740644editdlrm
_policybase.cpython-311.pyc197210644editdlrm
__init__.cpython-311.opt-1.pyc21300644editdlrm
__init__.cpython-311.opt-2.pyc15340644editdlrm
__init__.cpython-311.pyc21300644editdlrm
Edit: /opt/alt/python-internal/lib64/python3.11/email/__pycache__/generator.cpython-311.pyc (22423B)
!A?hNQdZgdZddlZddlZddlZddlZddlmZddlm Z m Z ddl m Z ddl mZdZd Zejd Zejd ejZejd ZGd dZGddeZdZGddeZeeejdz ZdezZejZdS)z:Classes to generate plain text from a message object tree.) GeneratorDecodedGeneratorBytesGeneratorN)deepcopy)StringIOBytesIO)_has_surrogates)HeaderWriteError_ z \r\n|\r|\nz^From z\r\n[^ \t]|\r[^ \n\t]|\n[^ \t]ceZdZdZddddZdZddZdZd Zd Z d Z d Z d Z dZ dZeZdZdZdZdZeddZedZdS)rzGenerates output from a Message object tree. This basic generator writes the message to the given file object as plain text. NpolicycX| |dn|j}||_||_||_||_dS)aCreate the generator for message flattening. outfp is the output file-like object for writing the message to. It must have a write() method. Optional mangle_from_ is a flag that, when True (the default if policy is not set), escapes From_ lines in the body of the message by putting a `>' in front of them. Optional maxheaderlen specifies the longest length for a non-continued header. When a header line is longer (in characters, with tabs expanded to 8 spaces) than maxheaderlen, the header will split as defined in the Header class. Set maxheaderlen to zero to disable header wrapping. The default is 78, as recommended (but not required) by RFC 2822. The policy keyword specifies a policy object that controls a number of aspects of the generator's operation. If no policy is specified, the policy associated with the Message object passed to the flatten method is used. NT) mangle_from__fp _mangle_from_ maxheaderlenr)selfoutfprrrs 44v7JL)( c:|j|dSN)rwriterss rrzGenerator.writeEs qrFc|j|jn|j}|||}|j||j}|j|_||j|_d|_||j|_|j}|j} ||_||_|r[| }|s(dtj tj z}| ||jz| |||_||_dS#||_||_wxYw)aPrint the message object tree rooted at msg to the output file specified when the Generator instance was created. unixfrom is a flag that forces the printing of a Unix From_ delimiter before the first object in the message tree. If the original message has no From_ delimiter, a `standard' one is crafted. By default, this is False to inhibit the printing of any From_ delimiter. Note that for subobjects, no From_ line is printed. linesep specifies the characters used to indicate a new line in the output. The default value is determined by the policy specified when the Generator instance was created or, if none was specified, from the policy associated with the msg. N)linesepmax_line_lengthz From nobody )rclonerr _NL_encode _encoded_NL_EMPTY_encoded_EMPTY get_unixfromtimectimer_write)rmsgunixfromr rold_gen_policyold_msg_policyufroms rflattenzGenerator.flattenIsE* ${2   \\'\22F   (\\$2C\DDF><<11 "ll4;77  ( DKCJ -((**E*TZ -D-DDE 548+,,, KK   (DK'CJJJ)DK'CJ ' ' ' 's 0BEEcH|||jd|jS)z1Clone this generator with the exact same options.Nr) __class__rr)rfps rr$zGenerator.clonezs-~~b"0"%)[22 2rctSr)rrs r _new_bufferzGenerator._new_buffers zzrc|Srrs rr&zGenerator._encodesrc|sdSt|}|ddD]1}||||j2|dr||ddSdS)N)NLCREsplitrr%)rlineslines r _write_lineszGenerator._write_liness  F E""#2#J ! !D JJt    JJtx 9 " JJuRy ! ! ! ! ! " "rcd|j} d|_|x|_}||||_|j}|`n#||_|j}|`wxYw|rht |}|d |d|d<n|d|d|d|dt|dd}|||n |||j | dS)Ncontent-transfer-encodingrContent-Transfer-Encoding content-type_write_headers) r _munge_cter9 _dispatchrgetreplace_headergetattrrHrgetvalue)rr.oldfpsfp munge_ctemeths rr-zGenerator._writesD "DO!--// /DHs NN3   DHIDHI      =3--Cww233;3 ! MMM   ~y| < < <s,d33 <    $ $ $ $ DJJJ s||~~&&&&&s 7AA#c^|}|}t||fdd}t |d|zd}|3|dd}t |d|zd}||j}||dS)N-r _handle_)get_content_maintypeget_content_subtype UNDERSCOREjoinreplacerM _writeBody)rr.mainsubspecificrRgenerics rrJzGenerator._dispatchs ''))%%''??D#;//77SAAtZ(2D99 <ll3,,G4g!5t<From ) get_payload isinstancestr TypeErrortyper _payload get_paramr set_payloadrIrfcrer]rB)rr.payloadrls r _handle_textzGenerator._handle_texts//## ? F'3'' K9DMMIJJ J 3< ( ( 8mmI..G"smm34 g666//++#&'B#C#&~#6#8   2hhx11G '"""""rcBg}|}|g}nDt|tr||dSt|ts|g}|D]o}|}||}||d|j| | p| }|sD|j |}||}|||j^|jr!t$d|j} n|j} || ||j|d|z|jz|r-|j|d|D]D} ||jdz|z|jz|j| E||jdz|zdz|jz|jF|jr!t$d|j} n|j} || dSdS)NFr/r rmz--r)rnrorprlistr9r$r3r%appendrN get_boundaryr'rY_make_boundary set_boundarypreamblerrvr]rBrpopepilogue) rr.msgtextssubpartspartrgboundaryalltextr body_partrs r_handle_multipartzGenerator._handle_multipart s??$$  HH # & & " JJx FHd++ " zH * *D  ""A 1 A IIdUDHI = = = OOAJJLL ) ) ) )##%% '&++H55G**733H   X & & & < #! (88Hcl;;<   h ' ' ' JJtx  4(?TX-...  , HNN8<<?? + + +" & &I JJtx$1DH< = = = HNN9 % % % % 48d?X-4tx?@@@ < #! (88Hcl;;<   h ' ' ' ' ' $ #rc|j}|d|_ ||||_dS#||_wxYw)Nrr!)rr$r)rr.ps r_handle_multipart_signedz"Generator._handle_multipart_signedFsS Kggag00    " "3 ' ' 'DKKK!DKOOOOs A A c@g}|D]}|}||}||d|j|}||j}|rG|d|jkr6| |j |dd| ||j |j |dS)NFrzr=) rnr9r$r3r%rNr?r'r)r|rYrr)rr.blocksrrrtextr@s r_handle_message_delivery_statusz)Generator._handle_message_delivery_statusQsOO%% $ $D  ""A 1 A IIdUDHI = = =::<#>#'#;#;#=#=#'#4#4_#E#E#'88,A,>$@$@#'88,G,;$=$= # # ! " " " " " " "r)NNN)rrrrrrJr;rrrrsN <"""""rrrGz%%0%dd) r__all__rrr+rcopyriorr email.utilsr email.errorsr rXNLrr>rrvrerrrrlenreprr_widthrr~r;rrrs A@ = = =  ''''''))))))    =!!rz)R\**!rz"CDDx$x$x$x$x$x$x$x$v /4/4/4/4/4Y/4/4/4dN6"6"6"6"6"y6"6"6"t TT#+a- ! !&)r