/opt/alt/python311/lib64/python3.11/email/__pycache__
Edit: /opt/alt/python311/lib64/python3.11/email/__pycache__/feedparser.cpython-311.pyc (21507B)
§
^½]¶ÆL_ã óX — d Z ddgZddlZddlmZ ddlmZ ddlmZ ddl m
Z
ej d ¦ « Z ej d
¦ « Z
ej d¦ « Z ej d
¦ « Z ej d¦ « Zd
ZdZ e¦ « Z G d„ de¦ « Z G d„ d¦ « Z G d„ de¦ « ZdS )a FeedParser - 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 óN — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z d„ Z
d „ Zd
„ Zd„ Z
dS )
ÚBufferedSubFileak A 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.
c ór — t d¬¦ « | _ t ¦ « | _ g | _ d| _ d S )Nr )ÚnewlineF)r Ú_partialr Ú_linesÚ _eofstackÚ_closed©Úselfs ú7/opt/alt/python311/lib64/python3.11/email/feedparser.pyÚ__init__zBufferedSubFile.__init__4 s3 € õ !¨Ð,Ñ,Ô,ˆŒ
å‘g”gˆŒàˆŒàˆŒˆˆó c ó: — | j |¦ « d S ©N)r Úappend)r Úpreds r Úpush_eof_matcherz BufferedSubFile.push_eof_matcher? s € ØŒ×Ò˜dÑ#Ô#Ð#Ð#Ð#r c ó4 — | j ¦ « S r )r Úpopr s r Úpop_eof_matcherzBufferedSubFile.pop_eof_matcherB s € ØŒ~×!Ò!Ñ#Ô#Ð#r c ó — | j d¦ « | | j ¦ « ¦ « | j d¦ « | j ¦ « d| _ d S )Nr T)r ÚseekÚ pushlinesÚ readlinesÚtruncater r s r ÚclosezBufferedSubFile.closeE sm € àŒ
×Ò˜1ÑÔÐØ�Š�t”}×.Ò.Ñ0Ô0Ñ1Ô1Ð1ØŒ
×Ò˜1ÑÔÐØŒ
×ÒÑ Ô Ð ØˆŒˆˆr c óä — | j s| j rdS t S | j ¦ « }t | j ¦ « D ]*} ||¦ « r| j |¦ « dS Œ+|S ©Nr )r r ÚNeedMoreDataÚpopleftÚreversedr Ú
appendleft)r ÚlineÚateofs r ÚreadlinezBufferedSubFile.readlineM sŠ € ØŒ{ð ØŒ|ð
Ø�rÝÐð Œ{×"Ò"Ñ$Ô$ˆõ ˜dœnÑ-Ô-ð ð ˆE؈u�T‰{Œ{ð
à”×&Ò& tÑ,Ô,Ð,Ø�r�rð
ð ˆr c óP — |t usJ ‚| j |¦ « d S r )r( r r+ ©r r, s r Ú
unreadlinezBufferedSubFile.unreadline_ s/ € à�<Ð'Ð'Ð'Ð'ØŒ×Ò˜tÑ$Ô$Ð$Ð$Ð$r c óÒ — | j |¦ « d|vrd|vrdS | j d¦ « | j ¦ « }| j d¦ « | j ¦ « |d d¦ « s,| j | ¦ « ¦ « | |¦ « dS )z$Push some new data into this object.r
ú
Nr éÿÿÿÿ)r Úwriter! r# r$ Úendswithr r" )r ÚdataÚpartss r ÚpushzBufferedSubFile.pushd sÙ € àŒ
×Ò˜DÑ!Ô!Ð!Ø�tÐÐ ¨DÐ 0Ð 0àˆFð
Œ
×Ò˜1ÑÔÐØ”
×'Ò'Ñ)Ô)ˆØŒ
×Ò˜1ÑÔÐØŒ
×ÒÑ Ô Ð ð �RŒy×!Ò! $Ñ'Ô'ð -ØŒM×Ò § ¢ ¡¤Ñ,Ô,Ð,Ø�Š�uÑÔÐÐÐr c ó: — | j |¦ « d S r )r Úextend)r Úliness r r" zBufferedSubFile.pushlinesy s € ØŒ×Ò˜5Ñ!Ô!Ð!Ð!Ð!r c ó — | S r © r s r Ú__iter__zBufferedSubFile.__iter__| s € ؈r c óH — | ¦ « }|dk rt ‚|S r' )r. Ú
StopIterationr0 s r Ú__next__zBufferedSubFile.__next__ s# € Ø�}Š}‰ŒˆØ�2Š:ˆ:ÝÐØˆr N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r r% r. r1 r9 r" r? rB r> r r r r , s´ € € € € € ðð ð ð ð ð$ð $ð $ð$ð $ð $ðð ð ðð ð ð$%ð %ð %ð
ð ð ð*"ð "ð "ðð ð ðð ð ð ð r r c óP — e Zd ZdZd
edœd„Zd„ Zd„ Zd„ Zd„ Z d „ Z
d
„ Zd„ Zd„ Z
dS )r zA feed-style parser of email.N©Úpolicyc óf — || _ d| _ |€"|j €ddlm} || _ n>|j | _ n1|| _ || j ¬¦ « n# t $ r
d| _ Y nw xY wt ¦ « | _ 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 )ÚMessagerH T)rI Ú_old_style_factoryÚmessage_factoryÚ
email.messagerK Ú_factoryÚ TypeErrorr Ú_inputÚ _msgstackÚ _parsegenrB Ú_parseÚ_curÚ_lastÚ_headersonly)r rO rI rK s r r zFeedParser.__init__‰ sÜ € 𠈌Ø"'ˆÔØÐØÔ%Ð-Ø1Ð1Ð1Ð1Ð1Ð1Ø '�”
�
à &Ô 6�”
�
à$ˆDŒMð
/Ø� ¤Ð,Ñ,Ô,Ð,Ð,øÝð
/ð
/ð
/à*.�Ô'Ð'Ð'ð
/øøøõ &Ñ'Ô'ˆŒØˆŒØ—n’nÑ&Ô&Ô/ˆŒØˆŒ ؈Œ
Ø!ˆÔÐÐs »A
Á
A!Á A!c ó — d| _ d S )NT)rW r s r Ú_set_headersonlyzFeedParser._set_headersonly¨ s € Ø ˆÔÐÐr c ób — | j |¦ « | ¦ « dS )zPush more data into the parser.N)rQ r9 Ú_call_parse)r r7 s r ÚfeedzFeedParser.feed« s0 € àŒ×Ò˜ÑÔÐØ×ÒÑÔÐÐÐr c óR — | ¦ « d S # t $ r Y d S w xY wr )rT rA r s r r[ zFeedParser._call_parse° s: € ð Ø�KŠK‰MŒMˆMˆMˆMøÝð ð ð ØˆDˆDð øøøs ‚ ˜
&¥&c ó\ — | j ¦ « | ¦ « | ¦ « }| j rJ ‚| ¦ « dk rI| ¦ « s5| j s.t j ¦ « }| j
||¦ « |S )z