$74 GRAYBYTE WORDPRESS FILE MANAGER $37

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python38/lib64/python3.8/email/__pycache__/

HOME
Current File : /opt/alt/python38/lib64/python3.8/email/__pycache__//feedparser.cpython-38.pyc
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�Zdd�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
-sr
c@s`eZdZdZded�dd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dS)rzA feed-style parser of email.N��policycCs�||_d|_|dkr<|jdkr2ddlm}||_qn|j|_n2||_z||jd�Wntk
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)z<Parse all remaining data and return the root message object.�	multipart)r?rrG�_pop_messager@r&�get_content_maintypeZis_multipartrZ!MultipartInvariantViolationDefectr:�
handle_defect)r�root�defectrrrr�s

�zFeedParser.closecCsn|jr|��}n|j|jd�}|jr<|j��dkr<|�d�|jrR|jd�|�|j�|�||_||_	dS)Nr9zmultipart/digestzmessage/rfc822r*)
r<r=r:rC�get_content_typeZset_default_typer@ZattachrrD)r�msgrrr�_new_message�s

zFeedParser._new_messagecCs(|j��}|jr|jd|_nd|_|S)Nr*)r@rrC)r�retvalrrrrK�s

zFeedParser._pop_messageccs$|��g}|jD]Z}|tkr&tVqt�|�sbt�|�s^t��}|j�	|j
|�|j�|�qn|�|�q|�
|�|jr�g}|j��}|tkr�tVq�|dkr�q�|�|�q�|j
�t�|��dS|j
��dk�r�|j�tj�|��D]}|tk�rtVq��qq�|��}|j��|j��}|tk�rDtV�q�qD�q|j��}|tk�rjtV�qD�qj�qD|dk�rx�q�|j�|�q�dS|j
��dk�r�|��D] }|tk�r�tV�q��qĐq�|��dS|j
��dk�r�|j
��}|dk�rRt��}|j�	|j
|�g}|jD]$}|tk�r.tV�q|�|��q|j
�t�|��dSt|j
�dd����dk�r�t��}|j�	|j
|�d|}t� d	t�!|�d
�}	d}
g}d}d}
|j��}|tk�r�tV�q�|dk�r�q�|	�|�}|�r�|�"d
��rd}
|�"d�}�q�|
�rr|�r^|d}t#�$|�}|�rP|dt%|�"d���|d<t�|�|j
_&d}
|j�|��q�|j��}|tk�r�tV�qr|	�|�}|�sr|j�|��q��qr|j�|	j�|��D] }|tk�r�tV�q��q�q�|j'��dk�rT|j'j(}|dk�rd|j'_(n:|dk	�r�t#�$|�}|�r�t%|�"d��}|d|�|j'_(nD|j'j)}t*|t��r�t#�$|�}|�r�|dt%|�"d���}||j'_)|j��|��|j
|_'n|
�s�t+�|�|��q�|
�r4t�,�}|j�	|j
|�|j
�t�|��g}|jD]}|tk�rtV�q�qt�|�|j
_(dS|
�sVt�-�}|j�	|j
|�dS|�rddg}ng}|jD]$}|tk�r�tV�qn|�|��qn|�r�|d}t.�|�}|�r�|t%|�"d��d�|d<t�|�|j
_(dSg}|jD]$}|tk�rtV�q�|�|��q�|j
�t�|��dS)Nrzmessage/delivery-status�messagerJzcontent-transfer-encoding�8bit)Z7bitrUZbinaryz--z(?P<sep>z4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$TF�end�linesepr*r)/rRr?r �headerRE�match�NLCRErZ MissingHeaderBodySeparatorDefectr:rMrCr(r�_parse_headersrEr%Zset_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�}|dk�r&t�d�}|jj�|�q|dk�s8td��|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�iorrbrZrkreZNLCRE_crackrXr\�NL�objectr r
rrrrrr�<module>s(




[


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 Oct 2024 8.34 AM
root / linksafe
0755
__init__.cpython-38.opt-1.pyc
1.666 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__init__.cpython-38.opt-2.pyc
1.056 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
__init__.cpython-38.pyc
1.666 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_encoded_words.cpython-38.opt-1.pyc
5.567 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_encoded_words.cpython-38.opt-2.pyc
3.726 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_encoded_words.cpython-38.pyc
5.567 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_header_value_parser.cpython-38.opt-1.pyc
78.103 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_header_value_parser.cpython-38.opt-2.pyc
61.626 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_header_value_parser.cpython-38.pyc
78.149 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_parseaddr.cpython-38.opt-1.pyc
12.19 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_parseaddr.cpython-38.opt-2.pyc
9.3 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_parseaddr.cpython-38.pyc
12.19 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_policybase.cpython-38.opt-1.pyc
14.925 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_policybase.cpython-38.opt-2.pyc
5.889 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
_policybase.cpython-38.pyc
14.925 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base64mime.cpython-38.opt-1.pyc
3.174 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base64mime.cpython-38.opt-2.pyc
1.438 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
base64mime.cpython-38.pyc
3.174 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
charset.cpython-38.opt-1.pyc
11.169 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
charset.cpython-38.opt-2.pyc
4.988 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
charset.cpython-38.pyc
11.205 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
contentmanager.cpython-38.opt-1.pyc
7.203 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
contentmanager.cpython-38.opt-2.pyc
7.203 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
contentmanager.cpython-38.pyc
7.203 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
encoders.cpython-38.opt-1.pyc
1.589 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
encoders.cpython-38.opt-2.pyc
1.246 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
encoders.cpython-38.pyc
1.589 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
errors.cpython-38.opt-1.pyc
5.943 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
errors.cpython-38.opt-2.pyc
4.512 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
errors.cpython-38.pyc
5.943 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
feedparser.cpython-38.opt-1.pyc
10.259 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
feedparser.cpython-38.opt-2.pyc
8.635 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
feedparser.cpython-38.pyc
10.407 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
generator.cpython-38.opt-1.pyc
12.674 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
generator.cpython-38.opt-2.pyc
9.062 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
generator.cpython-38.pyc
12.674 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
header.cpython-38.opt-1.pyc
16.068 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
header.cpython-38.opt-2.pyc
10.576 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
header.cpython-38.pyc
16.068 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
headerregistry.cpython-38.opt-1.pyc
21.491 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
headerregistry.cpython-38.opt-2.pyc
15.863 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
headerregistry.cpython-38.pyc
21.542 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
iterators.cpython-38.opt-1.pyc
1.89 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
iterators.cpython-38.opt-2.pyc
1.284 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
iterators.cpython-38.pyc
1.89 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
message.cpython-38.opt-1.pyc
37.005 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
message.cpython-38.opt-2.pyc
20.831 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
message.cpython-38.pyc
37.005 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
parser.cpython-38.opt-1.pyc
5.603 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
parser.cpython-38.opt-2.pyc
2.655 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
parser.cpython-38.pyc
5.603 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
policy.cpython-38.opt-1.pyc
9.446 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
policy.cpython-38.opt-2.pyc
3.377 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
policy.cpython-38.pyc
9.446 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
quoprimime.cpython-38.opt-1.pyc
7.513 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
quoprimime.cpython-38.opt-2.pyc
4.121 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
quoprimime.cpython-38.pyc
7.513 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
utils.cpython-38.opt-1.pyc
11.598 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
utils.cpython-38.opt-2.pyc
8.06 KB
23 Sep 2024 11.26 AM
root / linksafe
0644
utils.cpython-38.pyc
11.598 KB
23 Sep 2024 11.26 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF