/opt/alt/python311/lib64/python3.11/email/__pycache__
NameSizeModeActions
base64mime.cpython-311.opt-1.pyc43650644editdlrm
base64mime.cpython-311.opt-2.pyc26140644editdlrm
base64mime.cpython-311.pyc43650644editdlrm
charset.cpython-311.opt-1.pyc159740644editdlrm
charset.cpython-311.opt-2.pyc97030644editdlrm
charset.cpython-311.pyc160350644editdlrm
contentmanager.cpython-311.opt-1.pyc138440644editdlrm
contentmanager.cpython-311.opt-2.pyc138440644editdlrm
contentmanager.cpython-311.pyc138440644editdlrm
encoders.cpython-311.opt-1.pyc24000644editdlrm
encoders.cpython-311.opt-2.pyc20710644editdlrm
encoders.cpython-311.pyc24000644editdlrm
errors.cpython-311.opt-1.pyc86780644editdlrm
errors.cpython-311.opt-2.pyc70830644editdlrm
errors.cpython-311.pyc86780644editdlrm
feedparser.cpython-311.opt-1.pyc213070644editdlrm
feedparser.cpython-311.opt-2.pyc196660644editdlrm
feedparser.cpython-311.pyc215070644editdlrm
generator.cpython-311.opt-1.pyc230250644editdlrm
generator.cpython-311.opt-2.pyc193500644editdlrm
generator.cpython-311.pyc230250644editdlrm
header.cpython-311.opt-1.pyc269900644editdlrm
header.cpython-311.opt-2.pyc214130644editdlrm
header.cpython-311.pyc269900644editdlrm
headerregistry.cpython-311.opt-1.pyc337000644editdlrm
headerregistry.cpython-311.opt-2.pyc281060644editdlrm
headerregistry.cpython-311.pyc337660644editdlrm
iterators.cpython-311.opt-1.pyc31770644editdlrm
iterators.cpython-311.opt-2.pyc25840644editdlrm
iterators.cpython-311.pyc31770644editdlrm
message.cpython-311.opt-1.pyc590690644editdlrm
message.cpython-311.opt-2.pyc427820644editdlrm
message.cpython-311.pyc590690644editdlrm
parser.cpython-311.opt-1.pyc73980644editdlrm
parser.cpython-311.opt-2.pyc44260644editdlrm
parser.cpython-311.pyc73980644editdlrm
policy.cpython-311.opt-1.pyc125560644editdlrm
policy.cpython-311.opt-2.pyc63810644editdlrm
policy.cpython-311.pyc125560644editdlrm
quoprimime.cpython-311.opt-1.pyc112510644editdlrm
quoprimime.cpython-311.opt-2.pyc78390644editdlrm
quoprimime.cpython-311.pyc112510644editdlrm
utils.cpython-311.opt-1.pyc193250644editdlrm
utils.cpython-311.opt-2.pyc157840644editdlrm
utils.cpython-311.pyc193250644editdlrm
_encoded_words.cpython-311.opt-1.pyc91310644editdlrm
_encoded_words.cpython-311.opt-2.pyc72580644editdlrm
_encoded_words.cpython-311.pyc91310644editdlrm
_header_value_parser.cpython-311.opt-1.pyc1515610644editdlrm
_header_value_parser.cpython-311.opt-2.pyc1349570644editdlrm
_header_value_parser.cpython-311.pyc1516470644editdlrm
_parseaddr.cpython-311.opt-1.pyc243140644editdlrm
_parseaddr.cpython-311.opt-2.pyc214610644editdlrm
_parseaddr.cpython-311.pyc243140644editdlrm
_policybase.cpython-311.opt-1.pyc197150644editdlrm
_policybase.cpython-311.opt-2.pyc105680644editdlrm
_policybase.cpython-311.pyc197150644editdlrm
__init__.cpython-311.opt-1.pyc21240644editdlrm
__init__.cpython-311.opt-2.pyc15280644editdlrm
__init__.cpython-311.pyc21240644editdlrm
Edit: /opt/alt/python311/lib64/python3.11/email/__pycache__/_policybase.cpython-311.pyc (19715B)
§ 4s3cr•UãóΗdZddlZddlmZddlmZddlmZgd¢ZGd„d¦«Z d „Z d „Z Gd „d e ej ¬ ¦«Z e Gd„de ¦«¦«Ze¦«ZdS)zwPolicy framework for the email package. Allows fine grained feature control of how the package parses and emits data. éN)Úheader)Úcharset)Ú_has_surrogates)ÚPolicyÚCompat32Úcompat32có:‡—eZdZdZˆfd„Zd„Zd„Zd„Zd„ZˆxZ S)Ú _PolicyBasea‡Policy Object basic framework. This class is useless unless subclassed. A subclass should define class attributes with defaults for any values that are to be managed by the Policy object. The constructor will then allow non-default values to be set for these attributes at instance creation time. The instance will be callable, taking these same attributes keyword arguments, and returning a new instance identical to the called instance except for those values changed by the keyword arguments. Instances may be added, yielding new instances with any non-default values from the right hand operand overriding those in the left hand operand. That is, A + B == A() The repr of an instance can be used to reconstruct the object if and only if the repr of the values can be used to reconstruct those values. c ó•—| ¦«D]k\}}t||¦«r*tt|¦« ||¦«Œ?t d ||jj¦«¦«‚dS)z‚Create new Policy, possibly overriding some defaults. See class docstring for a list of overridable attributes. ú*{!r} is an invalid keyword argument for {}N) ÚitemsÚhasattrÚsuperr Ú __setattr__Ú TypeErrorÚformatÚ __class__Ú__name__)ÚselfÚkwÚnameÚvaluers €ú8/opt/alt/python311/lib64/python3.11/email/_policybase.pyÚ__init__z_PolicyBase.__init__)sŽø€ð Ÿ8š8™:œ:ð 8ð 8‰KˆD�%Ý�t˜TÑ"Ô"ð 8Ý•k $Ñ'Ô'×3Ò3°D¸%Ñ@Ô@Ð@Ð@åØ@×GÒGؘdœnÔ5ñ7ô7ñ8ô8ð8ð  8ð 8ócó®—d„|j ¦«D¦«}d |jjd |¦«¦«S)Ncó@—g|]\}}d ||¦«‘ŒS)z{}={!r})r)Ú.0rrs rú z(_PolicyBase.__repr__..8s<€ð<ð<ð<Ù �T˜5ð×!Ò! $¨Ñ.Ô.ð<ð<ðÑ:Ô:ˆ Øœ=×.Ò.Ñ0Ô0ð 7ð 7‰KˆD�%Ý × Ò ˜y¨$°Ñ 6Ô 6Ð 6Ð 6ØŸ8š8™:œ:ð 7ð 7‰KˆD�%ݘ4 Ñ&Ô&ð 8ÝØ@×GÒGؘdœnÔ5ñ7ô7ñ8ô8ð8õ × Ò ˜y¨$°Ñ 6Ô 6Ð 6Ð 6ØÐrcó†—t||¦«rd}nd}t| |jj|¦«¦«‚)Nz'{!r} object attribute {!r} is read-onlyz!{!r} object has no attribute {!r})rÚAttributeErrorrrr)rrrÚmsgs rrz_PolicyBase.__setattr__NsA€Ý �4˜Ñ Ô ð 6Ø;ˆCˆCà5ˆCݘSŸZšZ¨¬Ô(?ÀÑFÔFÑGÔGÐGrcó&—|jdi|j¤ŽS)z‰Non-default values from right operand override those from left. The object returned is a new instance of the subclass. ©)r)r )rÚothers rÚ__add__z_PolicyBase.__add__Us€ð ˆtŒzÐ+Ð+˜EœNÐ+Ð+Ð+r) rÚ __module__Ú __qualname__Ú__doc__rr#r)rr0Ú __classcell__)rs@rr r s„ø€€€€€ððð* 8ð 8ð 8ð 8ð 8ðIðIðIð ððð$HðHðHð,ð,ð,ð,ð,ð,ð,rr có‚—| dd¦«d}| dd¦«d}|dz|zS)Nú ér)ÚrsplitÚsplit)ÚdocÚ added_docs rÚ _append_docr<^sA€Ø �*Š*�T˜1Ñ Ô ˜aÔ €CØ—’  aÑ(Ô(¨Ô+€IØ �‰:˜ Ñ !Ð!rcó¼—|jrD|j d¦«r*t|jdj|j¦«|_|j ¦«D]v\}}|jrj|j d¦«rPd„|jD¦«D]>}t t ||¦«d¦«}|rt||j¦«|_nŒ?Œw|S)Nú+rc3óHK—|]}| ¦«D]}|V—ŒŒdS)N)Úmro)rÚbaseÚcs rú z%_extend_docstrings..hs7èè€ÐFÐF˜D¸4¿8º8¹:¼:ÐFÐF°a�aÐFÐFÐFÐFÐFÐFÐFrr3)r3Ú startswithr<Ú __bases__r r Úgetattr)Úclsrr(rBr:s rÚ_extend_docstringsrHcs逨 „{ðI�s”{×-Ò-¨cÑ2Ô2ðIÝ! #¤-°Ô"2Ô":¸C¼KÑHÔHˆŒ Ø”l×(Ò(Ñ*Ô*ðð‰ ˆˆdØ Œ<ð ˜DœL×3Ò3°CÑ8Ô8ð ØFÐF C¤MÐFÑFÔFð ð �Ý�g a¨Ñ.Ô.° Ñ:Ô:�ØðÝ#.¨s°D´LÑ#AÔ#A�D”LØ�Eðøð €Jrcóà—eZdZdZdZdZdZdZdZdZ dZ d„Z d „Z d „Z ejd „¦«Zejd „¦«Zejd „¦«Zejd„¦«Zejd„¦«ZdS)raò Controls for how messages are interpreted and formatted. Most of the classes and many of the methods in the email package accept Policy objects as parameters. A Policy object contains a set of values and functions that control how input is interpreted and how output is rendered. For example, the parameter 'raise_on_defect' controls whether or not an RFC violation results in an error being raised or not, while 'max_line_length' controls the maximum length of output lines when a Message is serialized. Any valid attribute may be overridden when a Policy is created by passing it as a keyword argument to the constructor. Policy objects are immutable, but a new Policy object can be created with only certain values changed by calling the Policy instance with keyword arguments. Policy objects can also be added, producing a new Policy object in which the non-default attributes set in the right hand operand overwrite those specified in the left operand. Settable attributes: raise_on_defect -- If true, then defects should be raised as errors. Default: False. linesep -- string containing the value to use as separation between output lines. Default '\n'. cte_type -- Type of allowed content transfer encodings 7bit -- ASCII only 8bit -- Content-Transfer-Encoding: 8bit is allowed Default: 8bit. Also controls the disposition of (RFC invalid) binary data in headers; see the documentation of the binary_fold method. max_line_length -- maximum length of lines, excluding 'linesep', during serialization. None or 0 means no line wrapping is done. Default is 78. mangle_from_ -- a flag that, when True escapes From_ lines in the body of the message by putting a `>' in front of them. This is used when the message is being serialized by a generator. Default: True. message_factory -- the class to use to create new message objects. If the value is None, the default is Message. verify_generated_headers -- if true, the generator verifies that each header they are properly folded, so that a parser won't treat it as multiple headers, start-of-body, or part of another header. This is a check against custom Header & fold() implementations. Fr6Ú8bitéNNTcóD—|jr|‚| ||¦«dS)aZBased on policy, either raise defect or call register_defect. handle_defect(obj, defect) defect should be a Defect subclass, but in any case must be an Exception subclass. obj is the object on which the defect should be registered if it is not raised. If the raise_on_defect is True, the defect is raised as an error, otherwise the object and the defect are passed to register_defect. This method is intended to be called by parsers that discover defects. The email package parsers always call it with Defect instances. N)Úraise_on_defectÚregister_defect©rÚobjÚdefects rÚ handle_defectzPolicy.handle_defect±s0€ð Ô ð ØˆLØ ×Ò˜S &Ñ)Ô)Ð)Ð)Ð)rcó:—|j |¦«dS)aÒRecord 'defect' on 'obj'. Called by handle_defect if raise_on_defect is False. This method is part of the Policy API so that Policy subclasses can implement custom defect handling. The default implementation calls the append method of the defects attribute of obj. The objects used by the email package by default that get passed to this method will always have a defects attribute with an append method. N)ÚdefectsÚappendrOs rrNzPolicy.register_defectÄs €ð Œ ×Ò˜6Ñ"Ô"Ð"Ð"Ð"rcó—dS)a[Return the maximum allowed number of headers named 'name'. Called when a header is added to a Message object. If the returned value is not 0 or None, and there are already a number of headers with the name 'name' equal to the value returned, a ValueError is raised. Because the default behavior of Message's __setitem__ is to append the value to the list of headers, it is easy to create duplicate headers without realizing it. This method allows certain headers to be limited in the number of instances of that header that may be added to a Message programmatically. (The limit is not observed by the parser, which will faithfully produce as many headers as exist in the message being parsed.) The default implementation returns None for all header names. Nr.)rrs rÚheader_max_countzPolicy.header_max_countÑs €ð"ˆtrcó—t‚)aZGiven a list of linesep terminated strings constituting the lines of a single header, return the (name, value) tuple that should be stored in the model. The input lines should retain their terminating linesep characters. The lines passed in by the email package may contain surrogateescaped binary data. ©ÚNotImplementedError)rÚ sourceliness rÚheader_source_parsezPolicy.header_source_parseäó €õ"Ð!rcó—t‚)z–Given the header name and the value provided by the application program, return the (name, value) that should be stored in the model. rY©rrrs rÚheader_store_parsezPolicy.header_store_parseîs €õ "Ð!rcó—t‚)awGiven the header name and the value from the model, return the value to be returned to the application program that is requesting that header. The value passed in by the email package may contain surrogateescaped binary data if the lines were parsed by a BytesParser. The returned value should not contain any surrogateescaped data. rYr_s rÚheader_fetch_parsezPolicy.header_fetch_parseõs €õ"Ð!rcó—t‚)ažGiven the header name and the value from the model, return a string containing linesep characters that implement the folding of the header according to the policy controls. The value passed in by the email package may contain surrogateescaped binary data if the lines were parsed by a BytesParser. The returned value should not contain any surrogateescaped data. rYr_s rÚfoldz Policy.folds €õ"Ð!rcó—t‚)a%Given the header name and the value from the model, return binary data containing linesep characters that implement the folding of the header according to the policy controls. The value passed in by the email package may contain surrogateescaped binary data. rYr_s rÚ fold_binaryzPolicy.fold_binary r]r)rr1r2r3rMÚlinesepÚcte_typeÚmax_line_lengthÚ mangle_from_Úmessage_factoryÚverify_generated_headersrRrNrWÚabcÚabstractmethodr\r`rbrdrfr.rrrrps €€€€€ð5ð5ðn€OØ€GØ€HØ€OØ€LØ€OØ#Ðð*ð*ð*ð& #ð #ð #ðððð& Ôð"ð"ñÔð"ð Ôð"ð"ñÔð"ð  Ôð"ð"ñÔð"ð Ôð "ð "ñÔð "ð Ôð"ð"ñÔð"ð"ð"rr)Ú metaclasscó@—eZdZdZdZd„Zd„Zd„Zd„Zd„Z d„Z d „Z d S) rz‰+ This particular policy is the backward compatibility Policy. It replicates the behavior of the email package version 5.1. Tcó”—t|t¦«s|St|¦«r!tj|t j|¬¦«S|S)N©rÚ header_name)Ú isinstanceÚstrrrÚHeaderÚ_charsetÚ UNKNOWN8BITr_s rÚ_sanitize_headerzCompat32._sanitize_header!sU€õ˜%¥Ñ%Ô%ð àˆLÝ ˜5Ñ !Ô !ð Ý”= µÔ0DØ-1ð3ñ3ô3ð 3ðˆLrcóÔ—|d dd¦«\}}| d¦«d |dd…¦«z}|| d¦«fS)a:+ The name is parsed as everything up to the ':' and returned unmodified. The value is determined by stripping leading whitespace off the remainder of the first line, joining all subsequent lines together, and stripping any trailing carriage return or linefeed characters. rú:r7z ÚNz )r9Úlstripr!Úrstrip)rr[rrs rr\zCompat32.header_source_parse-sb€ð" !”n×*Ò*¨3°Ñ2Ô2‰ ˆˆeØ— ’ ˜UÑ#Ô# b§g¢g¨k¸!¸"¸"¬oÑ&>Ô&>Ñ>ˆØ�e—l’l 6Ñ*Ô*Ð+Ð+rcó —||fS)z>+ The name and value are returned unmodified. r.r_s rr`zCompat32.header_store_parse9s€ð�eˆ}Ðrcó.—| ||¦«S)z¨+ If the value contains binary data, it is converted into a Header object using the unknown-8bit charset. Otherwise it is returned unmodified. )ryr_s rrbzCompat32.header_fetch_parse?s€ð ×$Ò$ T¨5Ñ1Ô1Ð1rcó2—| ||d¬¦«S)a+ Headers are folded using the Header folding algorithm, which preserves existing line breaks in the value, and wraps each resulting line to the max_line_length. Non-ASCII binary data are CTE encoded using the unknown-8bit charset. T©Úsanitize)Ú_foldr_s rrdz Compat32.foldFs€ð�zŠz˜$ °ˆzÑ5Ô5Ð5rcóp—| |||jdk¬¦«}| dd¦«S)a�+ Headers are folded using the Header folding algorithm, which preserves existing line breaks in the value, and wraps each resulting line to the max_line_length. If cte_type is 7bit, non-ascii binary data is CTE encoded using the unknown-8bit charset. Otherwise the original source header is used, with its existing line breaks and/or binary data. Ú7bitr‚ÚasciiÚsurrogateescape)r„rhÚencode)rrrÚfoldeds rrfzCompat32.fold_binaryPs7€ð—’˜D %°$´-ÀÒ2G�ÑHÔHˆØ�}Š}˜WÐ&7Ñ8Ô8Ð8rcó—g}| d|z¦«t|t¦«rbt|¦«r<|r"t j|t j|¬¦«}n1| |¦«d}nt j||¬¦«}n|}|�?d}|j�|j}| |  |j |¬¦«¦«| |j ¦«d  |¦«S)Nz%s: rr)rsr)rgÚ maxlinelenr|) rUrtrurrrvrwrxrir‰rgr!)rrrrƒÚpartsÚhrŒs rr„zCompat32._fold\s€ØˆØ � Š �V˜d‘]Ñ#Ô#Ð#Ý �e�SÑ !Ô !ð ݘuÑ%Ô%ð ;Øð Ýœ  eÝ.6Ô.BØ26ð8ñ8ô8�A�Að—L’L Ñ'Ô'Ð'Ø�A�Aå”M %°TÐ:Ñ:Ô:��ðˆAØ ˆ=ðˆJØÔ#Ð/Ø!Ô1� Ø �LŠL˜Ÿš¨$¬,À:˜ÑNÔNÑ OÔ OÐ OØ � Š �T”\Ñ"Ô"Ð"Ø�wŠw�u‰~Œ~ÐrN) rr1r2r3rjryr\r`rbrdrfr„r.rrrrsŽ€€€€€ððð €Lð ð ð ð ,ð ,ð ,ðððð 2ð2ð2ð6ð6ð6ð 9ð 9ð 9ðððððrr)r3rmÚemailrrrwÚ email.utilsrÚ__all__r r<rHÚABCMetarrrr.rrúr“s>ðððð  € € € ØÐÐÐÐÐØ%Ð%Ð%Ð%Ð%Ð%Ø'Ð'Ð'Ð'Ð'Ð'ð ð ð €ðI,ðI,ðI,ðI,ðI,ñI,ôI,ðI,ðX"ð"ð"ð ð ð ðd"ðd"ðd"ðd"ðd"ˆ[ C¤Kðd"ñd"ôd"ðd"ðNðcðcðcðcðcˆvñcôcñÔðcðL ˆ8‰:Œ:€€€r