$20 GRAYBYTE WORDPRESS FILE MANAGER $81

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/python37/lib64/python3.7/email/__pycache__/

HOME
Current File : /opt/alt/python37/lib64/python3.7/email/__pycache__//feedparser.cpython-37.opt-1.pyc
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�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/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
-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||_y||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)�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<Parse all remaining data and return the root message object.�	multipart)
r9rrA�_pop_message�get_content_maintypeZis_multipartrZ!MultipartInvariantViolationDefectr4�
handle_defect)r�root�defectrrrr�s
zFeedParser.closecCsn|jr|��}n|j|jd�}|jr<|j��dkr<|�d�|jrR|jd�|�|j�|�||_||_	dS)N)r4zmultipart/digestzmessage/rfc822r%)
r6r7r4r=�get_content_typeZset_default_typer:Zattachrr>)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
��dk�r�x�|j�tj�x$|��D]}|tk�rtVq�Pq�W|��}|j��x&|j��}|tk�rFtV�q(P�q(Wx&|j��}|tk�rntV�qPP�qPW|dk�r�P|j�|�q�WdS|j
��dk�r�x(|��D]}|tk�r�tV�q�P�q�W|��dS|j
��dk�r�|j
��}|dk�rbt��}|j�	|j
|�g}x.|jD]$}|tk�r<tV�q$|�|��q$W|j
�t�|��dSt|j
�dd����dk�r�t��}|j�	|j
|�d|}t� d	t�!|�d
�}	d}
g}d}d}
�x|j��}|tk�r�tV�q�|dk�r�P|	�|�}|�r�|�"d
��r d}
|�"d�}P|
�r�|�rn|d}t#�$|�}|�r`|dt%|�"d���|d<t�|�|j
_&d}
|j�|��q�xB|j��}|tk�r�tV�q�|	�|�}|�s�|j�|�P�q�W|j�|	j�x(|��D]}|tk�r�tV�q�P�q�W|j'��dk�rf|j'j(}|dk�r*d|j'_(n:|dk	�r�t#�$|�}|�r�t%|�"d��}|d|�|j'_(nD|j'j)}t*|t��r�t#�$|�}|�r�|dt%|�"d���}||j'_)|j��|��|j
|_'n
|�|��q�W|
�rBt�+�}|j�	|j
|�|j
�t�|��g}x$|jD]}|tk�rtV�q�qWt�|�|j
_(dS|
�sdt�,�}|j�	|j
|�dS|�rrdg}ng}x.|jD]$}|tk�r�tV�q~|�|��q~W|�r�|d}t-�|�}|�r�|t%|�"d��d�|d<t�|�|j
_(dSg}x.|jD]$}|tk�rtV�q�|�|��q�W|j
�t�|��dS)Nrzmessage/delivery-status�messagerCzcontent-transfer-encoding�8bit)Z7bitrNZbinaryz--z(?P<sep>z4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$TF�end�linesepr%r).rKr9r�headerRE�match�NLCRErZ MissingHeaderBodySeparatorDefectr4rFr=r#r�_parse_headersr?r"Zset_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�}|dk�r(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^ZNLCRE_crackrQrU�NL�objectrr
rrrrrr�<module>s(




[


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.34 AM
root / linksafe
0755
__init__.cpython-37.opt-1.pyc
1.648 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
__init__.cpython-37.opt-2.pyc
1.054 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
__init__.cpython-37.pyc
1.648 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_encoded_words.cpython-37.opt-1.pyc
5.474 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_encoded_words.cpython-37.opt-2.pyc
3.632 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
_encoded_words.cpython-37.pyc
5.474 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_header_value_parser.cpython-37.opt-1.pyc
75.119 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_header_value_parser.cpython-37.opt-2.pyc
58.956 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
_header_value_parser.cpython-37.pyc
75.166 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_parseaddr.cpython-37.opt-1.pyc
12.125 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_parseaddr.cpython-37.opt-2.pyc
9.234 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
_parseaddr.cpython-37.pyc
12.125 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_policybase.cpython-37.opt-1.pyc
14.499 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
_policybase.cpython-37.opt-2.pyc
5.859 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
_policybase.cpython-37.pyc
14.499 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
base64mime.cpython-37.opt-1.pyc
3.156 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
base64mime.cpython-37.opt-2.pyc
1.421 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
base64mime.cpython-37.pyc
3.156 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
charset.cpython-37.opt-1.pyc
11.22 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
charset.cpython-37.opt-2.pyc
5.033 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
charset.cpython-37.pyc
11.256 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
contentmanager.cpython-37.opt-1.pyc
7.121 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
contentmanager.cpython-37.opt-2.pyc
7.121 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
contentmanager.cpython-37.pyc
7.121 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
encoders.cpython-37.opt-1.pyc
1.622 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
encoders.cpython-37.opt-2.pyc
1.279 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
encoders.cpython-37.pyc
1.622 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
errors.cpython-37.opt-1.pyc
6.043 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
errors.cpython-37.opt-2.pyc
4.537 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
errors.cpython-37.pyc
6.043 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
feedparser.cpython-37.opt-1.pyc
10.229 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
feedparser.cpython-37.opt-2.pyc
8.603 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
feedparser.cpython-37.pyc
10.377 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
generator.cpython-37.opt-1.pyc
12.204 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
generator.cpython-37.opt-2.pyc
8.595 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
generator.cpython-37.pyc
12.204 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
header.cpython-37.opt-1.pyc
15.999 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
header.cpython-37.opt-2.pyc
10.507 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
header.cpython-37.pyc
15.999 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
headerregistry.cpython-37.opt-1.pyc
20.883 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
headerregistry.cpython-37.opt-2.pyc
15.247 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
headerregistry.cpython-37.pyc
20.936 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
iterators.cpython-37.opt-1.pyc
1.884 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
iterators.cpython-37.opt-2.pyc
1.276 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
iterators.cpython-37.pyc
1.884 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
message.cpython-37.opt-1.pyc
37.101 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
message.cpython-37.opt-2.pyc
20.897 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
message.cpython-37.pyc
37.101 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
parser.cpython-37.opt-1.pyc
5.609 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
parser.cpython-37.opt-2.pyc
2.66 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
parser.cpython-37.pyc
5.609 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
policy.cpython-37.opt-1.pyc
9.426 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
policy.cpython-37.opt-2.pyc
3.354 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
policy.cpython-37.pyc
9.426 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
quoprimime.cpython-37.opt-1.pyc
7.481 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
quoprimime.cpython-37.opt-2.pyc
4.086 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
quoprimime.cpython-37.pyc
7.481 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
utils.cpython-37.opt-1.pyc
9.242 KB
17 Apr 2024 5.36 PM
root / linksafe
0644
utils.cpython-37.opt-2.pyc
5.991 KB
17 Apr 2024 5.35 PM
root / linksafe
0644
utils.cpython-37.pyc
9.242 KB
17 Apr 2024 5.36 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF