/opt/alt/python38/lib64/python3.8/email/__pycache__
NameSizeModeActions
base64mime.cpython-38.opt-1.pyc32500644editdlrm
base64mime.cpython-38.opt-2.pyc14730644editdlrm
base64mime.cpython-38.pyc32500644editdlrm
charset.cpython-38.opt-1.pyc114370644editdlrm
charset.cpython-38.opt-2.pyc51080644editdlrm
charset.cpython-38.pyc114740644editdlrm
contentmanager.cpython-38.opt-1.pyc73760644editdlrm
contentmanager.cpython-38.opt-2.pyc73760644editdlrm
contentmanager.cpython-38.pyc73760644editdlrm
encoders.cpython-38.opt-1.pyc16270644editdlrm
encoders.cpython-38.opt-2.pyc12760644editdlrm
encoders.cpython-38.pyc16270644editdlrm
errors.cpython-38.opt-1.pyc60860644editdlrm
errors.cpython-38.opt-2.pyc46200644editdlrm
errors.cpython-38.pyc60860644editdlrm
feedparser.cpython-38.opt-1.pyc105050644editdlrm
feedparser.cpython-38.opt-2.pyc88420644editdlrm
feedparser.cpython-38.pyc106570644editdlrm
generator.cpython-38.opt-1.pyc129780644editdlrm
generator.cpython-38.opt-2.pyc92790644editdlrm
generator.cpython-38.pyc129780644editdlrm
header.cpython-38.opt-1.pyc164540644editdlrm
header.cpython-38.opt-2.pyc108300644editdlrm
header.cpython-38.pyc164540644editdlrm
headerregistry.cpython-38.opt-1.pyc220070644editdlrm
headerregistry.cpython-38.opt-2.pyc162440644editdlrm
headerregistry.cpython-38.pyc220590644editdlrm
iterators.cpython-38.opt-1.pyc19350644editdlrm
iterators.cpython-38.opt-2.pyc13150644editdlrm
iterators.cpython-38.pyc19350644editdlrm
message.cpython-38.opt-1.pyc378930644editdlrm
message.cpython-38.opt-2.pyc213310644editdlrm
message.cpython-38.pyc378930644editdlrm
parser.cpython-38.opt-1.pyc57370644editdlrm
parser.cpython-38.opt-2.pyc27190644editdlrm
parser.cpython-38.pyc57370644editdlrm
policy.cpython-38.opt-1.pyc96730644editdlrm
policy.cpython-38.opt-2.pyc34580644editdlrm
policy.cpython-38.pyc96730644editdlrm
quoprimime.cpython-38.opt-1.pyc76930644editdlrm
quoprimime.cpython-38.opt-2.pyc42200644editdlrm
quoprimime.cpython-38.pyc76930644editdlrm
utils.cpython-38.opt-1.pyc118760644editdlrm
utils.cpython-38.opt-2.pyc82530644editdlrm
utils.cpython-38.pyc118760644editdlrm
_encoded_words.cpython-38.opt-1.pyc57010644editdlrm
_encoded_words.cpython-38.opt-2.pyc38150644editdlrm
_encoded_words.cpython-38.pyc57010644editdlrm
_header_value_parser.cpython-38.opt-1.pyc799770644editdlrm
_header_value_parser.cpython-38.opt-2.pyc631050644editdlrm
_header_value_parser.cpython-38.pyc800250644editdlrm
_parseaddr.cpython-38.opt-1.pyc124830644editdlrm
_parseaddr.cpython-38.opt-2.pyc95230644editdlrm
_parseaddr.cpython-38.pyc124830644editdlrm
_policybase.cpython-38.opt-1.pyc152830644editdlrm
_policybase.cpython-38.opt-2.pyc60300644editdlrm
_policybase.cpython-38.pyc152830644editdlrm
__init__.cpython-38.opt-1.pyc17060644editdlrm
__init__.cpython-38.opt-2.pyc10810644editdlrm
__init__.cpython-38.pyc17060644editdlrm
Edit: /opt/alt/python38/lib64/python3.8/email/__pycache__/feedparser.cpython-38.pyc (10657B)
U iÛfüXã@s¶dZddgZddlZddlmZddlmZddlmZddl m Z e  d ¡Z e  d ¡Z e  d ¡Ze  d ¡Ze  d ¡Zd ZdZeƒZGdd„deƒZGdd„dƒZGdd„deƒZdS)aFeedParser - An email feed parser. The feed parser implements an interface for incrementally parsing an email message, line by line. This has advantages for certain applications, such as those reading email messages off a socket. FeedParser.feed() is the primary interface for pushing new data into the parser. It returns when there's nothing more it can do with the available data. When you have no more data to push into the parser, call .close(). This completes the parsing and returns the root message object. The other advantage of this parser is that it will never raise a parsing exception. Instead, when it finds something unexpected, it adds a 'defect' to the current message. Defects are just instances that live on the message object's .defects attribute. Ú FeedParserÚBytesFeedParseréN)Úerrors)Úcompat32)Údeque)ÚStringIOz \r\n|\r|\nz (\r\n|\r|\n)z(\r\n|\r|\n)\Zz%^(From |[\041-\071\073-\176]*:|[\t ])ÚÚ c@s`eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dS)ÚBufferedSubFileakA file-ish object that can have new data loaded into it. You can also push and pop line-matching predicates onto a stack. When the current predicate matches the current line, a false EOF response (i.e. empty string) is returned instead. This lets the parser adhere to a simple abstraction -- it parses until EOF closes the current message. cCs$tdd|_tƒ|_g|_d|_dS)Nr)ÚnewlineF)rÚ_partialrÚ_linesÚ _eofstackÚ_closed©Úself©rú5/opt/alt/python38/lib64/python3.8/email/feedparser.pyÚ__init__5s zBufferedSubFile.__init__cCs|j |¡dS©N)rÚappend)rZpredrrrÚpush_eof_matcher@sz BufferedSubFile.push_eof_matchercCs |j ¡Sr)rÚpoprrrrÚpop_eof_matcherCszBufferedSubFile.pop_eof_matchercCs<|j d¡| |j ¡¡|j d¡|j ¡d|_dS)NrT)r ÚseekÚ pushlinesÚ readlinesÚtruncaterrrrrÚcloseFs    zBufferedSubFile.closecCsL|js|jrdStS|j ¡}t|jƒD]}||ƒr(|j |¡dSq(|S©Nr)r rÚ NeedMoreDataÚpopleftÚreversedrÚ appendleft)rÚlineZateofrrrÚreadlineNs  zBufferedSubFile.readlinecCs|tk s t‚|j |¡dSr)r ÚAssertionErrorr r#©rr$rrrÚ unreadline`s zBufferedSubFile.unreadlinecCsx|j |¡d|kr d|kr dS|j d¡|j ¡}|j d¡|j ¡|d d¡sj|j | ¡¡| |¡dS)z$Push some new data into this object.r ú Nréÿÿÿÿ)r ÚwriterrrÚendswithrr)rÚdataÚpartsrrrÚpushes     zBufferedSubFile.pushcCs|j |¡dSr)r Úextend)rÚlinesrrrrzszBufferedSubFile.pushlinescCs|SrrrrrrÚ__iter__}szBufferedSubFile.__iter__cCs| ¡}|dkrt‚|Sr)r%Ú StopIterationr'rrrÚ__next__€szBufferedSubFile.__next__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrr%r(r/rr2r4rrrrr -s r c@s`eZdZdZdedœdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dS)rzA feed-style parser of email.N©ÚpolicycCsž||_d|_|dkr<|jdkr2ddlm}||_qn|j|_n2||_z||jdWntk rld|_YnXtƒ|_g|_ |  ¡j |_ d|_ d|_d|_dS)a_factory is called with no arguments to create a new message obj The policy keyword specifies a policy object that controls a number of aspects of the parser's operation. The default policy maintains backward compatibility. FNr)ÚMessager9T)r:Ú_old_style_factoryZmessage_factoryZ email.messager;Ú_factoryÚ TypeErrorr Ú_inputÚ _msgstackÚ _parsegenr4Ú_parseÚ_curÚ_lastÚ _headersonly)rr=r:r;rrrr‹s$     zFeedParser.__init__cCs d|_dS)NT)rErrrrÚ_set_headersonlyªszFeedParser._set_headersonlycCs|j |¡| ¡dS)zPush more data into the parser.N)r?r/Ú _call_parse©rr-rrrÚfeed­s zFeedParser.feedcCs&z | ¡Wntk r YnXdSr)rBr3rrrrrG²s zFeedParser._call_parsecCsR|j ¡| ¡| ¡}|jr$t‚| ¡dkrN| ¡sNt  ¡}|j   ||¡|S)zz4)(?P--)?(?P[ \t]*)(?P\r\n|\r|\n)?$TFÚendÚlinesepr*r)/rRr?r ÚheaderREÚmatchÚNLCRErZ MissingHeaderBodySeparatorDefectr:rMrCr(rÚ_parse_headersrEr%Z set_payloadÚ EMPTYSTRINGÚjoinrPrrArKrrLZ get_boundaryZNoBoundaryInMultipartDefectÚstrÚgetÚlowerZ-InvalidMultipartContentTransferEncodingDefectÚreÚcompileÚescapeÚgroupÚ NLCRE_eolÚsearchÚlenÚpreamblerDÚepilogueZ_payloadÚ isinstancer&ZStartBoundaryNotFoundDefectZCloseBoundaryNotFoundDefectÚ NLCRE_bol)rZheadersr$rOr1rSrQÚboundaryZ separatorZ boundaryreZcapturing_preamblerhrWZclose_boundary_seenÚmoZlastlineZeolmorirVZpayloadÚ firstlineZbolmorrrrAÚsb                       ÿ ÿÿ                               zFeedParser._parsegenc Csjd}g}t|ƒD]8\}}|ddkrR|sFt |¡}|j |j|¡q| |¡q|rt|jj|j |¡Ždg}}|  d¡rø|dkr¼t   |¡}|r¬|dt |  d¡ƒ …}|j |¡qn<|t |ƒdkrÞ|j |¡dSt |¡}|jj |¡q| d¡}|dkr&t d¡}|jj |¡q|dks8tdƒ‚|d|…}|g}q|rf|jj|j |¡ŽdS) Nrrz zFrom éú:zMissing header name.z3_parse_headers fed line with no : and no leading WS)Ú enumeraterZ#FirstHeaderLineIsContinuationDefectr:rMrCrZset_rawZheader_source_parseÚ startswithrerfrgrdZ set_unixfromr?r(ZMisplacedEnvelopeHeaderDefectZdefectsÚfindZInvalidHeaderDefectr&) rr1Z lastheaderZ lastvalueÚlinenor$rOrmÚirrrr[×sH             zFeedParser._parse_headers)N)r5r6r7r8rrrFrIrGrrRrKrAr[rrrrrˆs  ~cs eZdZdZ‡fdd„Z‡ZS)rz(Like FeedParser, but feed accepts bytes.cstƒ | dd¡¡dS)NÚasciiÚsurrogateescape)ÚsuperrIÚdecoderH©Ú __class__rrrIszBytesFeedParser.feed)r5r6r7r8rIÚ __classcell__rrrzrrs)r8Ú__all__raZemailrZemail._policybaserÚ collectionsrÚiorrbrZrkreZ NLCRE_crackrXr\ÚNLÚobjectr r rrrrrrÚs(         [