auto #ˆl–ß=¿JJj"Tâ‚ ÆÅpN)‹Fÿ ƒh¹ÁÀ¿0 #ˆl–äY>””†Ù”â�nãa¸&Tţà ƒyá7ÂÁÀ"ya ´iüXã@s²ddgZddlZddlmZddlmZddlmZddlm Z e  d¡Z e  d ¡Z e  d ¡Z e  d ¡Ze  d ¡Zd Zd ZeƒZGdd„deƒZGdd„dƒZGdd„deƒZdS)Ú 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\eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dS)ÚBufferedSubFilecCs$tdd�|_tƒ|_g|_d|_dS)Nr)ÚnewlineF)rÚ_partialrÚ_linesÚ _eofstackÚ_closed©Úself©rú(/usr/lib64/python3.9/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|j |¡dSr)r r#©rr$rrrÚ unreadline`szBufferedSubFile.unreadlinecCsx|j |¡d|vr d|vr dS|j d¡|j ¡}|j d¡|j ¡|d d¡sj|j | ¡¡| |¡dS)Nr ú réÿÿÿÿ)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__rrrrr%r'r.rr1r3rrrrr -s r c@s\eZdZdedœdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dS)rN©ÚpolicycCsœ||_d|_|dur<|jdur2ddlm}||_ql|j|_n0||_z||jd�Wntyjd|_Yn0tƒ|_g|_ |  ¡j |_ d|_ d|_d|_dS)NFr)ÚMessager7T)r8Ú_old_style_factoryZmessage_factoryZ email.messager9Ú_factoryÚ TypeErrorr Ú_inputÚ _msgstackÚ _parsegenr3Ú_parseÚ_curÚ_lastÚ _headersonly)rr;r8r9rrrr‹s$      zFeedParser.__init__cCs d|_dS)NT)rCrrrrÚ_set_headersonlyªszFeedParser._set_headersonlycCs|j |¡| ¡dSr)r=r.Ú _call_parse©rr,rrrÚfeed­s zFeedParser.feedcCs$z | ¡WntyYn0dSr)r@r2rrrrrE²s  zFeedParser._call_parsecCsH|j ¡| ¡| ¡}| ¡dkrD| ¡sDt ¡}|j  ||¡|S)NÚ multipart) r=rrEÚ _pop_messageÚget_content_maintypeZ is_multipartrZ!MultipartInvariantViolationDefectr8Ú handle_defect)rÚrootÚdefectrrrr¸s  ÿzFeedParser.closecCsn|jr| ¡