/opt/alt/python37/lib64/python3.7/email/__pycache__
NameSizeModeActions
base64mime.cpython-37.opt-1.pyc32320644editdlrm
base64mime.cpython-37.opt-2.pyc14550644editdlrm
base64mime.cpython-37.pyc32320644editdlrm
charset.cpython-37.opt-1.pyc114890644editdlrm
charset.cpython-37.opt-2.pyc51540644editdlrm
charset.cpython-37.pyc115260644editdlrm
contentmanager.cpython-37.opt-1.pyc72920644editdlrm
contentmanager.cpython-37.opt-2.pyc72920644editdlrm
contentmanager.cpython-37.pyc72920644editdlrm
encoders.cpython-37.opt-1.pyc16610644editdlrm
encoders.cpython-37.opt-2.pyc13100644editdlrm
encoders.cpython-37.pyc16610644editdlrm
errors.cpython-37.opt-1.pyc61880644editdlrm
errors.cpython-37.opt-2.pyc46460644editdlrm
errors.cpython-37.pyc61880644editdlrm
feedparser.cpython-37.opt-1.pyc104740644editdlrm
feedparser.cpython-37.opt-2.pyc88090644editdlrm
feedparser.cpython-37.pyc106260644editdlrm
generator.cpython-37.opt-1.pyc124970644editdlrm
generator.cpython-37.opt-2.pyc88010644editdlrm
generator.cpython-37.pyc124970644editdlrm
header.cpython-37.opt-1.pyc163830644editdlrm
header.cpython-37.opt-2.pyc107590644editdlrm
header.cpython-37.pyc163830644editdlrm
headerregistry.cpython-37.opt-1.pyc213840644editdlrm
headerregistry.cpython-37.opt-2.pyc156130644editdlrm
headerregistry.cpython-37.pyc214380644editdlrm
iterators.cpython-37.opt-1.pyc19290644editdlrm
iterators.cpython-37.opt-2.pyc13070644editdlrm
iterators.cpython-37.pyc19290644editdlrm
message.cpython-37.opt-1.pyc379910644editdlrm
message.cpython-37.opt-2.pyc213990644editdlrm
message.cpython-37.pyc379910644editdlrm
parser.cpython-37.opt-1.pyc57440644editdlrm
parser.cpython-37.opt-2.pyc27240644editdlrm
parser.cpython-37.pyc57440644editdlrm
policy.cpython-37.opt-1.pyc96520644editdlrm
policy.cpython-37.opt-2.pyc34350644editdlrm
policy.cpython-37.pyc96520644editdlrm
quoprimime.cpython-37.opt-1.pyc76610644editdlrm
quoprimime.cpython-37.opt-2.pyc41840644editdlrm
quoprimime.cpython-37.pyc76610644editdlrm
utils.cpython-37.opt-1.pyc94640644editdlrm
utils.cpython-37.opt-2.pyc61350644editdlrm
utils.cpython-37.pyc94640644editdlrm
_encoded_words.cpython-37.opt-1.pyc56050644editdlrm
_encoded_words.cpython-37.opt-2.pyc37190644editdlrm
_encoded_words.cpython-37.pyc56050644editdlrm
_header_value_parser.cpython-37.opt-1.pyc769220644editdlrm
_header_value_parser.cpython-37.opt-2.pyc603710644editdlrm
_header_value_parser.cpython-37.pyc769700644editdlrm
_parseaddr.cpython-37.opt-1.pyc124160644editdlrm
_parseaddr.cpython-37.opt-2.pyc94560644editdlrm
_parseaddr.cpython-37.pyc124160644editdlrm
_policybase.cpython-37.opt-1.pyc148470644editdlrm
_policybase.cpython-37.opt-2.pyc60000644editdlrm
_policybase.cpython-37.pyc148470644editdlrm
__init__.cpython-37.opt-1.pyc16880644editdlrm
__init__.cpython-37.opt-2.pyc10790644editdlrm
__init__.cpython-37.pyc16880644editdlrm
Edit: /opt/alt/python37/lib64/python3.7/email/__pycache__/feedparser.cpython-37.opt-1.pyc (10474B)
B  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/python37/lib64/python3.7/email/feedparser.pyÚ__init__5s zBufferedSubFile.__init__cCs|j |¡dS)N)rÚappend)rZpredrrrÚpush_eof_matcher@sz BufferedSubFile.push_eof_matchercCs |j ¡S)N)rÚpop)rrrrÚpop_eof_matcherCszBufferedSubFile.pop_eof_matchercCs<|j d¡| |j ¡¡|j d¡|j ¡d|_dS)NrT)r ÚseekÚ pushlinesÚ readlinesÚtruncater)rrrrÚcloseFs    zBufferedSubFile.closecCsN|js|jrdStS|j ¡}x*t|jƒD]}||ƒr*|j |¡dSq*W|S)Nr)r rÚ NeedMoreDataÚpopleftÚreversedrÚ appendleft)rÚlineZateofrrrÚreadlineNs  zBufferedSubFile.readlinecCs|j |¡dS)N)r r )rr!rrrÚ unreadline`szBufferedSubFile.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 |¡dS)N)r Úextend)rÚlinesrrrrzszBufferedSubFile.pushlinescCs|S)Nr)rrrrÚ__iter__}szBufferedSubFile.__iter__cCs| ¡}|dkrt‚|S)Nr)r"Ú StopIteration)rr!rrrÚ__next__€szBufferedSubFile.__next__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrr"r#r*rr-r/rrrrr -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||_y||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)ÚMessage)r4T)r4Ú_old_style_factoryZmessage_factoryZ email.messager5Ú_factoryÚ TypeErrorr Ú_inputÚ _msgstackÚ _parsegenr/Ú_parseÚ_curÚ_lastÚ _headersonly)rr7r4r5rrrr‹s$     zFeedParser.__init__cCs d|_dS)NT)r?)rrrrÚ_set_headersonlyªszFeedParser._set_headersonlycCs|j |¡| ¡dS)zPush more data into the parser.N)r9r*Ú _call_parse)rr(rrrÚfeed­s zFeedParser.feedcCs&y | ¡Wntk r YnXdS)N)r<r.)rrrrrA²s zFeedParser._call_parsecCsH|j ¡| ¡| ¡}| ¡dkrD| ¡sDt ¡}|j  ||¡|S)z)rÚmsgrrrÚ _new_messageÅs   zFeedParser._new_messagecCs(|j ¡}|jr|jd|_nd|_|S)Nr%)r:rr=)rÚretvalrrrrDÒs  zFeedParser._pop_messageccs:| ¡g}xb|jD]X}|tkr(tVqt |¡sbt |¡s`t ¡}|j  |j |¡|j  |¡P|  |¡qW|  |¡|jrÎg}x2|j ¡}|tkr tVq†|dkrªP|  |¡q†W|j  t |¡¡dS|j  ¡dkr–x²|j tj¡x$| ¡D]}|tkrtVqøPqøW| ¡}|j ¡x&|j ¡}|tkrFtVq(Pq(Wx&|j ¡}|tkrntVqPPqPW|dkr‚P|j  |¡qàWdS|j  ¡dkrÜx(| ¡D]}|tkrÈtVq°Pq°W| ¡dS|j  ¡dkrð|j  ¡}|dkrbt ¡}|j  |j |¡g}x.|jD]$}|tkrz4)(?P--)?(?P[ \t]*)(?P\r\n|\r|\n)?$TFÚendÚlinesepr%r).rKr9rÚheaderREÚmatchÚNLCRErZ MissingHeaderBodySeparatorDefectr4rFr=r#rÚ_parse_headersr?r"Z set_payloadÚ EMPTYSTRINGÚjoinrIrr;rDrrEZ get_boundaryZNoBoundaryInMultipartDefectÚstrÚgetÚlowerZ-InvalidMultipartContentTransferEncodingDefectÚreÚcompileÚescapeÚgroupÚ NLCRE_eolÚsearchÚlenÚpreambler>ÚepilogueZ_payloadÚ isinstanceZStartBoundaryNotFoundDefectZCloseBoundaryNotFoundDefectÚ NLCRE_bol)rZheadersr!rHr,rLrJÚboundaryZ separatorZ boundaryreZcapturing_preamblerarPZclose_boundary_seenÚmoZlastlineZeolmorbrOZpayloadÚ firstlineZbolmorrrr;Úsf                                                zFeedParser._parsegenc Cs\d}g}x2t|ƒD]$\}}|ddkrV|sJt |¡}|j |j|¡q| |¡q|rx|jj|j |¡Ždg}}|  d¡rú|dkrÀt   |¡}|r°|dt |  d¡ƒ …}|j |¡qn:|t |ƒdkrà|j |¡dSt |¡}|jj |¡q| d¡}|dkr(t d¡}|jj |¡q|d|…}|g}qW|rX|jj|j |¡ŽdS)Nrrz zFrom éú:zMissing header name.)Ú enumeraterZ#FirstHeaderLineIsContinuationDefectr4rFr=rZset_rawZheader_source_parseÚ startswithr^r_r`r]Z set_unixfromr9r#ZMisplacedEnvelopeHeaderDefectZdefectsÚfindZInvalidHeaderDefect) rr,Z lastheaderZ lastvalueÚlinenor!rHrfÚirrrrT×sF              zFeedParser._parse_headers)N)r0r1r2r3rrr@rBrArrKrDr;rTrrrrrˆs  ~cs eZdZdZ‡fdd„Z‡ZS)rz(Like FeedParser, but feed accepts bytes.cstƒ | dd¡¡dS)NÚasciiÚsurrogateescape)ÚsuperrBÚdecode)rr()Ú __class__rrrBszBytesFeedParser.feed)r0r1r2r3rBÚ __classcell__rr)rsrrs)r3Ú__all__rZZemailrZemail._policybaserÚ collectionsrÚiorr[rSrdr^Z NLCRE_crackrQrUÚNLÚobjectrr rrrrrrÚs(         [