$47 GRAYBYTE WORDPRESS FILE MANAGER $77

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

HOME
Current File : /opt/alt/python35/lib64/python3.5/email/__pycache__//feedparser.cpython-35.opt-1.pyc


��Yf�Y�@sdZddgZddlZddlmZddlmZddlmZddlm	Z	dd	l
mZejd
�Z
ejd�Zejd�Zejd�Zejd
�ZdZdZe�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)�message)�compat32)�deque)�StringIOz
|
|
z(
|
|
)z
(
|
|
)\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.
    cCs4tdd�|_t�|_g|_d|_dS)N�newliner	F)r�_partialr�_lines�	_eofstack�_closed)�self�r�5/opt/alt/python35/lib64/python3.5/email/feedparser.py�__init__6s	zBufferedSubFile.__init__cCs|jj|�dS)N)r�append)rZpredrrr�push_eof_matcherAsz BufferedSubFile.push_eof_matchercCs
|jj�S)N)r�pop)rrrr�pop_eof_matcherDszBufferedSubFile.pop_eof_matchercCsP|jjd�|j|jj��|jjd�|jj�d|_dS)NrT)r
�seek�	pushlines�	readlines�truncater)rrrr�closeGs

zBufferedSubFile.closecCsg|js|jrdStS|jj�}x7t|j�D]&}||�r9|jj|�dSq9W|S)Nr	)rr�NeedMoreData�popleft�reversedr�
appendleft)r�lineZateofrrr�readlineOs		zBufferedSubFile.readlinecCs|jj|�dS)N)rr!)rr"rrr�
unreadlineaszBufferedSubFile.unreadlinecCs�|jj|�d|kr,d|kr,dS|jjd�|jj�}|jjd�|jj�|djd�s�|jj|j��|j|�dS)z$Push some new data into this object.r
�
Nr����)r
�writerrr�endswithrr)r�data�partsrrr�pushfs
zBufferedSubFile.pushcCs|jj|�dS)N)r�extend)r�linesrrrr{szBufferedSubFile.pushlinescCs|S)Nr)rrrr�__iter__~szBufferedSubFile.__iter__cCs"|j�}|dkrt�|S)Nr	)r#�
StopIteration)rr"rrr�__next__�szBufferedSubFile.__next__N)�__name__�
__module__�__qualname__�__doc__rrrrr#r$r,rr/r1rrrrr.src@s�eZdZdZddedd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dS)rzA feed-style parser of email.N�policycCs�||_d|_|dkrK|jtkr<tj|_q�tj|_n;||_y|d|j�Wntk
r�d|_YnXt�|_	g|_
|j�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.

        FNr6T)r6�_old_style_factoryrrZMessage�_factoryZEmailMessage�	TypeErrorr�_input�	_msgstack�	_parsegenr1�_parse�_cur�_last�_headersonly)rr8r6rrrr�s"			
			zFeedParser.__init__cCs
d|_dS)NT)r@)rrrr�_set_headersonly�szFeedParser._set_headersonlycCs|jj|�|j�dS)zPush more data into the parser.N)r:r,�_call_parse)rr*rrr�feed�szFeedParser.feedcCs'y|j�Wntk
r"YnXdS)N)r=r0)rrrrrB�s
zFeedParser._call_parsecCse|jj�|j�|j�}|j�dkra|j�ratj�}|jj	||�|S)z<Parse all remaining data and return the root message object.�	multipart)
r:rrB�_pop_message�get_content_maintypeZis_multipartrZ!MultipartInvariantViolationDefectr6�
handle_defect)r�root�defectrrrr�s


zFeedParser.closecCs�|jr|j�}n|jd|j�}|jrX|jj�dkrX|jd�|jru|jdj|�|jj|�||_||_	dS)Nr6zmultipart/digestzmessage/rfc822r&r')
r7r8r6r>�get_content_typeZset_default_typer;Zattachrr?)r�msgrrr�_new_message�s	
		zFeedParser._new_messagecCs8|jj�}|jr+|jd|_n	d|_|S)Nr&r')r;rr>)r�retvalrrrrE�s
		zFeedParser._pop_messageccs�|j�g}x�|jD]x}|tkr4tVqtj|�s�tj|�s�tj�}|jj	|j
|�|jj|�P|j|�qW|j
|�|jrg}xA|jj�}|tkr�tVq�|dkr�P|j|�q�W|j
jtj|��dS|j
j�dkr�x�|jjtj�x)|j�D]}|tkretVqKPqKW|j�}|jj�x(|jj�}|tkr�tVq�Pq�Wx(|jj�}|tkr�tVq�Pq�W|dkr�P|jj|�q+WdS|j
j�dkrMx)|j�D]}|tkr:tVq Pq W|j�dS|j
j�dkrv|j
j�}|dkr�tj�}|jj	|j
|�g}x2|jD]'}|tkr�tVq�|j|�q�W|j
jtj|��dS|j
jdd�j�dkr:tj�}|jj	|j
|�d	|}tjd
tj |�d�}	d}
g}d
}d
}
x�|jj�}|tkr�tVq|dkr�P|	j|�}|r|j!d�r�d}
|j!d�}P|
rf|rM|d}t"j#|�}|r8|dt$|j!d���|d<tj|�|j
_%d
}
|jj|�qxM|jj�}|tkr�tVqi|	j|�}|si|jj|�PqiW|jj|	j�x)|j�D]}|tkr�tVq�Pq�W|j&j�dkr�|j&j'}|dkr1d|j&_'q�|dk	r�t"j#|�}|r�t$|j!d��}|d|�|j&_'n\|j&j(}t)|t*�r�t"j#|�}|r�|dt$|j!d���}||j&_(|jj�|j�|j
|_&q|j|�qW|
r�tj+�}|jj	|j
|�|j
jtj|��g}x%|jD]}|tkretVqeqeWtj|�|j
_'dS|
s�tj,�}|jj	|j
|�dS|r�dg}ng}x2|jD]'}|tkrtVq�|j|�q�W|r]|d}t-j|�}|r]|t$|j!d��d�|d<tj|�|j
_'dSg}x2|jD]'}|tkr�tVq�|j|�q�W|j
jtj|��dS)Nr	zmessage/delivery-statusrrDzcontent-transfer-encoding�8bit�7bit�binaryz--z(?P<sep>z4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$TF�end�linesepr&r)rOrNrPr'r').rLr:r�headerRE�match�NLCRErZ MissingHeaderBodySeparatorDefectr6rGr>r$r�_parse_headersr@r#Zset_payload�EMPTYSTRING�joinrJrr<rErrFZget_boundaryZNoBoundaryInMultipartDefect�get�lowerZ-InvalidMultipartContentTransferEncodingDefect�re�compile�escape�group�	NLCRE_eol�search�len�preambler?�epilogueZ_payload�
isinstance�strZStartBoundaryNotFoundDefectZCloseBoundaryNotFoundDefect�	NLCRE_bol)rZheadersr"rIr.rMrK�boundaryZ	separatorZ
boundaryreZcapturing_preamblerbrRZclose_boundary_seen�moZlastlineZeolmorcrQZpayload�	firstlineZbolmorrrr<�sf

	

	


$ 


#zFeedParser._parsegenc	Cs�d}g}x�t|�D]�\}}|ddkrs|sctj|�}|jj|j|�q|j|�q|r�|jj|jj|��dg}}|j	d�rW|dkrt
j|�}|r�|dt|j
d���}|jj|�qnO|t|�dkr2|jj|�dStj|�}|jjj|�q|jd�}|dkr�tjd�}|jjj|�q|d|�}|g}qW|r�|jj|jj|��dS)Nr	rz 	zFrom r&�:zMissing header name.)�	enumeraterZ#FirstHeaderLineIsContinuationDefectr6rGr>rZset_rawZheader_source_parse�
startswithr_r`rar^Zset_unixfromr:r$ZMisplacedEnvelopeHeaderDefectZdefects�findZInvalidHeaderDefect)	rr.Z
lastheaderZ	lastvalue�linenor"rIrh�irrrrV�sF

 
zFeedParser._parse_headers)r2r3r4r5rrrArCrBrrLrEr<rVrrrrr�s!

�cs(eZdZdZ�fdd�Z�S)rz(Like FeedParser, but feed accepts bytes.cs t�j|jdd��dS)N�ascii�surrogateescape)�superrC�decode)rr*)�	__class__rrrCszBytesFeedParser.feed)r2r3r4r5rCrr)rtrrs)r5�__all__r[ZemailrrZemail._policybaser�collectionsr�iorr\rUrfr_ZNLCRE_crackrSrW�NL�objectrrrrrrrr�<module>s&	[��


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
12 Aug 2024 8.41 AM
root / linksafe
0755
__init__.cpython-35.opt-1.pyc
1.72 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.opt-2.pyc
1.117 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.cpython-35.pyc
1.72 KB
31 May 2024 1.51 PM
root / linksafe
0644
_encoded_words.cpython-35.opt-1.pyc
5.904 KB
31 May 2024 1.51 PM
root / linksafe
0644
_encoded_words.cpython-35.opt-2.pyc
4.055 KB
31 May 2024 1.51 PM
root / linksafe
0644
_encoded_words.cpython-35.pyc
5.904 KB
31 May 2024 1.51 PM
root / linksafe
0644
_header_value_parser.cpython-35.opt-1.pyc
85.26 KB
31 May 2024 1.51 PM
root / linksafe
0644
_header_value_parser.cpython-35.opt-2.pyc
70.101 KB
31 May 2024 1.51 PM
root / linksafe
0644
_header_value_parser.cpython-35.pyc
85.316 KB
31 May 2024 1.51 PM
root / linksafe
0644
_parseaddr.cpython-35.opt-1.pyc
13.479 KB
31 May 2024 1.51 PM
root / linksafe
0644
_parseaddr.cpython-35.opt-2.pyc
10.577 KB
31 May 2024 1.51 PM
root / linksafe
0644
_parseaddr.cpython-35.pyc
13.479 KB
31 May 2024 1.51 PM
root / linksafe
0644
_policybase.cpython-35.opt-1.pyc
14.834 KB
31 May 2024 1.51 PM
root / linksafe
0644
_policybase.cpython-35.opt-2.pyc
6.326 KB
31 May 2024 1.51 PM
root / linksafe
0644
_policybase.cpython-35.pyc
14.834 KB
31 May 2024 1.51 PM
root / linksafe
0644
base64mime.cpython-35.opt-1.pyc
3.29 KB
31 May 2024 1.51 PM
root / linksafe
0644
base64mime.cpython-35.opt-2.pyc
1.547 KB
31 May 2024 1.51 PM
root / linksafe
0644
base64mime.cpython-35.pyc
3.29 KB
31 May 2024 1.51 PM
root / linksafe
0644
charset.cpython-35.opt-1.pyc
11.73 KB
31 May 2024 1.51 PM
root / linksafe
0644
charset.cpython-35.opt-2.pyc
5.536 KB
31 May 2024 1.51 PM
root / linksafe
0644
charset.cpython-35.pyc
11.773 KB
31 May 2024 1.51 PM
root / linksafe
0644
contentmanager.cpython-35.opt-1.pyc
7.908 KB
31 May 2024 1.51 PM
root / linksafe
0644
contentmanager.cpython-35.opt-2.pyc
7.902 KB
31 May 2024 1.51 PM
root / linksafe
0644
contentmanager.cpython-35.pyc
7.908 KB
31 May 2024 1.51 PM
root / linksafe
0644
encoders.cpython-35.opt-1.pyc
1.703 KB
31 May 2024 1.51 PM
root / linksafe
0644
encoders.cpython-35.opt-2.pyc
1.353 KB
31 May 2024 1.51 PM
root / linksafe
0644
encoders.cpython-35.pyc
1.703 KB
31 May 2024 1.51 PM
root / linksafe
0644
errors.cpython-35.opt-1.pyc
6.128 KB
31 May 2024 1.51 PM
root / linksafe
0644
errors.cpython-35.opt-2.pyc
4.629 KB
31 May 2024 1.51 PM
root / linksafe
0644
errors.cpython-35.pyc
6.128 KB
31 May 2024 1.51 PM
root / linksafe
0644
feedparser.cpython-35.opt-1.pyc
11.18 KB
31 May 2024 1.51 PM
root / linksafe
0644
feedparser.cpython-35.opt-2.pyc
9.54 KB
31 May 2024 1.51 PM
root / linksafe
0644
feedparser.cpython-35.pyc
11.348 KB
31 May 2024 1.51 PM
root / linksafe
0644
generator.cpython-35.opt-1.pyc
13.177 KB
31 May 2024 1.51 PM
root / linksafe
0644
generator.cpython-35.opt-2.pyc
9.554 KB
31 May 2024 1.51 PM
root / linksafe
0644
generator.cpython-35.pyc
13.177 KB
31 May 2024 1.51 PM
root / linksafe
0644
header.cpython-35.opt-1.pyc
17.269 KB
31 May 2024 1.51 PM
root / linksafe
0644
header.cpython-35.opt-2.pyc
11.769 KB
31 May 2024 1.51 PM
root / linksafe
0644
header.cpython-35.pyc
17.269 KB
31 May 2024 1.51 PM
root / linksafe
0644
headerregistry.cpython-35.opt-1.pyc
22.027 KB
31 May 2024 1.51 PM
root / linksafe
0644
headerregistry.cpython-35.opt-2.pyc
16.378 KB
31 May 2024 1.51 PM
root / linksafe
0644
headerregistry.cpython-35.pyc
22.087 KB
31 May 2024 1.51 PM
root / linksafe
0644
iterators.cpython-35.opt-1.pyc
1.98 KB
31 May 2024 1.51 PM
root / linksafe
0644
iterators.cpython-35.opt-2.pyc
1.365 KB
31 May 2024 1.51 PM
root / linksafe
0644
iterators.cpython-35.pyc
1.98 KB
31 May 2024 1.51 PM
root / linksafe
0644
message.cpython-35.opt-1.pyc
38.32 KB
31 May 2024 1.51 PM
root / linksafe
0644
message.cpython-35.opt-2.pyc
22.639 KB
31 May 2024 1.51 PM
root / linksafe
0644
message.cpython-35.pyc
38.32 KB
31 May 2024 1.51 PM
root / linksafe
0644
parser.cpython-35.opt-1.pyc
5.771 KB
31 May 2024 1.51 PM
root / linksafe
0644
parser.cpython-35.opt-2.pyc
2.814 KB
31 May 2024 1.51 PM
root / linksafe
0644
parser.cpython-35.pyc
5.771 KB
31 May 2024 1.51 PM
root / linksafe
0644
policy.cpython-35.opt-1.pyc
9.621 KB
31 May 2024 1.51 PM
root / linksafe
0644
policy.cpython-35.opt-2.pyc
3.54 KB
31 May 2024 1.51 PM
root / linksafe
0644
policy.cpython-35.pyc
9.621 KB
31 May 2024 1.51 PM
root / linksafe
0644
quoprimime.cpython-35.opt-1.pyc
7.919 KB
31 May 2024 1.51 PM
root / linksafe
0644
quoprimime.cpython-35.opt-2.pyc
4.516 KB
31 May 2024 1.51 PM
root / linksafe
0644
quoprimime.cpython-35.pyc
7.919 KB
31 May 2024 1.51 PM
root / linksafe
0644
utils.cpython-35.opt-1.pyc
10.213 KB
31 May 2024 1.51 PM
root / linksafe
0644
utils.cpython-35.opt-2.pyc
7.148 KB
31 May 2024 1.51 PM
root / linksafe
0644
utils.cpython-35.pyc
10.213 KB
31 May 2024 1.51 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF