$83 GRAYBYTE WORDPRESS FILE MANAGER $24

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 93.127.173.42 | ADMIN IP 216.73.216.63
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib64/python3.6/email/__pycache__/

HOME
Current File : /lib64/python3.6/email/__pycache__//feedparser.cpython-36.opt-1.pyc
3


 \�X�@s�dZddgZddlZddlmZddlmZddlmZddl	m
Z
ejd	�Zejd
�Z
ejd�Zejd
�Zejd�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�(/usr/lib64/python3.6/email/feedparser.py�__init__5szBufferedSubFile.__init__cCs|jj|�dS)N)r�append)rZpredrrr�push_eof_matcher@sz BufferedSubFile.push_eof_matchercCs
|jj�S)N)r�pop)rrrr�pop_eof_matcherCszBufferedSubFile.pop_eof_matchercCs<|jjd�|j|jj��|jjd�|jj�d|_dS)NrT)r�seek�	pushlines�	readlines�truncater)rrrr�closeFs

zBufferedSubFile.closecCsN|js|jrdStS|jj�}x*t|j�D]}||�r*|jj|�dSq*W|S)Nr)r
r�NeedMoreData�popleft�reversedr�
appendleft)r�lineZateofrrr�readlineNs
zBufferedSubFile.readlinecCs|jj|�dS)N)r
r )rr!rrr�
unreadline`szBufferedSubFile.unreadlinecCsx|jj|�d|kr d|kr dS|jjd�|jj�}|jjd�|jj�|djd�sj|jj|j��|j|�dS)z$Push some new data into this object.r	�
Nr����)r�writerrr�endswithrr)r�data�partsrrr�pushes

zBufferedSubFile.pushcCs|jj|�dS)N)r
�extend)r�linesrrrrzszBufferedSubFile.pushlinescCs|S)Nr)rrrr�__iter__}szBufferedSubFile.__iter__cCs|j�}|dkrt�|S)Nr)r"�
StopIteration)rr!rrr�__next__�szBufferedSubFile.__next__N)�__name__�
__module__�__qualname__�__doc__rrrrr"r#r+rr.r0rrrrr
-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
�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)r5T)r5�_old_style_factoryZmessage_factoryZ
email.messager6�_factory�	TypeErrorr
�_input�	_msgstack�	_parsegenr0�_parse�_cur�_last�_headersonly)rr8r5r6rrrr�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�szFeedParser.feedcCs&y|j�Wntk
r YnXdS)N)r=r/)rrrrrB�szFeedParser._call_parsecCsJ|jj�|j�|j�}|j�dkrF|j�rFtj�}|jj	||�|S)z<Parse all remaining data and return the root message object.�	multipart)
r:rrB�_pop_message�get_content_maintypeZis_multipartrZ!MultipartInvariantViolationDefectr5�
handle_defect)r�root�defectrrrr�s

zFeedParser.closecCsn|jr|j�}n|j|jd�}|jr<|jj�dkr<|jd�|jrR|jdj|�|jj|�||_||_	dS)N)r5zmultipart/digestzmessage/rfc822r%r&)
r7r8r5r>�get_content_typeZset_default_typer;Zattachrr?)r�msgrrr�_new_message�s

zFeedParser._new_messagecCs(|jj�}|jr|jd|_nd|_|S)Nr%r&)r;rr>)r�retvalrrrrE�s

zFeedParser._pop_messageccs6|j�g}xb|jD]X}|tkr(tVqtj|�sbtj|�s`tj�}|jj	|j
|�|jj|�P|j|�qW|j
|�|jr�g}x2|jj�}|tkr�tVq�|dkr�P|j|�q�W|j
jtj|��dS|j
j�dk�r�x�|jjtj�x$|j�D]}|tk�rtVq�Pq�W|j�}|jj�x&|jj�}|tk�rFtV�q(P�q(Wx&|jj�}|tk�rntV�qPP�qPW|dk�r�P|jj|�q�WdS|j
j�dk�r�x(|j�D]}|tk�r�tV�q�P�q�W|j�dS|j
j�dk�r�|j
j�}|dk�rbtj�}|jj	|j
|�g}x.|jD]$}|tk�r<tV�q$|j|��q$W|j
jtj|��dS|j
jdd�j�dk�r�tj�}|jj	|j
|�d	|}tjd
tj |�d�}	d}
g}d
}d
}
�x|jj�}|tk�r�tV�q�|dk�r�P|	j|�}|�r�|j!d��rd}
|j!d�}P|
�r~|�rj|d}t"j#|�}|�r\|dt$|j!d���|d<tj|�|j
_%d
}
|jj|��q�xB|jj�}|tk�r�tV�q�|	j|�}|�s�|jj|�P�q�W|jj|	j�x(|j�D]}|tk�r�tV�q�P�q�W|j&j�dk�rb|j&j'}|dk�r&d|j&_'n:|dk	�r�t"j#|�}|�r�t$|j!d��}|d|�|j&_'nD|j&j(}t)|t*��r�t"j#|�}|�r�|dt$|j!d���}||j&_(|jj�|j�|j
|_&n
|j|��q�W|
�r>tj+�}|jj	|j
|�|j
jtj|��g}x$|jD]}|tk�rtV�q�qWtj|�|j
_'dS|
�s`tj,�}|jj	|j
|�dS|�rndg}ng}x.|jD]$}|tk�r�tV�qz|j|��qzW|�r�|d}t-j|�}|�r�|t$|j!d��d�|d<tj|�|j
_'dSg}x.|jD]$}|tk�rtV�q�|j|��q�W|j
jtj|��dS)Nrzmessage/delivery-status�messagerDzcontent-transfer-encoding�8bit�7bit�binaryz--z(?P<sep>z4)(?P<end>--)?(?P<ws>[ \t]*)(?P<linesep>\r\n|\r|\n)?$TF�end�linesepr%r)rPrOrQr&r&).rLr:r�headerRE�match�NLCRErZ MissingHeaderBodySeparatorDefectr5rGr>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_preamblercrSZclose_boundary_seen�moZlastlineZeolmordrRZpayload�	firstlineZbolmorrrr<�sf




































zFeedParser._parsegenc	Cs^d}g}�x4t|�D�]&\}}|ddkrV|sJtj|�}|jj|j|�q|j|�q|rx|jj|jj|��dg}}|j	d��r�|dkr�t
j|�}|r�|dt|j
d���}|jj|�qn:|t|�dkr�|jj|�dStj|�}|jjj|�q|jd�}|dk�r*tjd�}|jjj|�q|d|�}|g}qW|�rZ|jj|jj|��dS)Nrrz 	zFrom r%�:zMissing header name.)�	enumeraterZ#FirstHeaderLineIsContinuationDefectr5rGr>rZset_rawZheader_source_parse�
startswithr`rarbr_Zset_unixfromr:r#ZMisplacedEnvelopeHeaderDefectZdefects�findZInvalidHeaderDefect)	rr-Z
lastheaderZ	lastvalue�linenor!rIri�irrrrW�sF








zFeedParser._parse_headers)N)r1r2r3r4rrrArCrBrrLrEr<rWrrrrr�s

~cs eZdZdZ�fdd�Z�ZS)rz(Like FeedParser, but feed accepts bytes.cst�j|jdd��dS)N�ascii�surrogateescape)�superrC�decode)rr))�	__class__rrrCszBytesFeedParser.feed)r1r2r3r4rC�
__classcell__rr)rurrs)r4�__all__r\ZemailrZemail._policybaser�collectionsr�iorr]rVrgr`ZNLCRE_crackrTrX�NL�objectrr
rrrrrr�<module>s(




[

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
28 Feb 2025 12.45 AM
root / root
0755
__init__.cpython-36.opt-1.pyc
1.632 KB
5 Dec 2024 1.10 PM
root / root
0644
__init__.cpython-36.opt-2.pyc
1.037 KB
5 Dec 2024 1.10 PM
root / root
0644
__init__.cpython-36.pyc
1.632 KB
5 Dec 2024 1.10 PM
root / root
0644
_encoded_words.cpython-36.opt-1.pyc
5.455 KB
5 Dec 2024 1.10 PM
root / root
0644
_encoded_words.cpython-36.opt-2.pyc
3.613 KB
5 Dec 2024 1.10 PM
root / root
0644
_encoded_words.cpython-36.pyc
5.455 KB
5 Dec 2024 1.10 PM
root / root
0644
_header_value_parser.cpython-36.opt-1.pyc
74.335 KB
5 Dec 2024 1.10 PM
root / root
0644
_header_value_parser.cpython-36.opt-2.pyc
58.23 KB
5 Dec 2024 1.10 PM
root / root
0644
_header_value_parser.cpython-36.pyc
74.386 KB
5 Dec 2024 1.10 PM
root / root
0644
_parseaddr.cpython-36.opt-1.pyc
12.206 KB
5 Dec 2024 1.10 PM
root / root
0644
_parseaddr.cpython-36.opt-2.pyc
9.315 KB
5 Dec 2024 1.10 PM
root / root
0644
_parseaddr.cpython-36.pyc
12.206 KB
5 Dec 2024 1.10 PM
root / root
0644
_policybase.cpython-36.opt-1.pyc
14.93 KB
5 Dec 2024 1.10 PM
root / root
0644
_policybase.cpython-36.opt-2.pyc
5.875 KB
5 Dec 2024 1.10 PM
root / root
0644
_policybase.cpython-36.pyc
14.93 KB
5 Dec 2024 1.10 PM
root / root
0644
base64mime.cpython-36.opt-1.pyc
3.145 KB
5 Dec 2024 1.10 PM
root / root
0644
base64mime.cpython-36.opt-2.pyc
1.409 KB
5 Dec 2024 1.10 PM
root / root
0644
base64mime.cpython-36.pyc
3.145 KB
5 Dec 2024 1.10 PM
root / root
0644
charset.cpython-36.opt-1.pyc
11.207 KB
5 Dec 2024 1.10 PM
root / root
0644
charset.cpython-36.opt-2.pyc
5.021 KB
5 Dec 2024 1.10 PM
root / root
0644
charset.cpython-36.pyc
11.243 KB
5 Dec 2024 1.10 PM
root / root
0644
contentmanager.cpython-36.opt-1.pyc
7.119 KB
5 Dec 2024 1.10 PM
root / root
0644
contentmanager.cpython-36.opt-2.pyc
7.119 KB
5 Dec 2024 1.10 PM
root / root
0644
contentmanager.cpython-36.pyc
7.119 KB
5 Dec 2024 1.10 PM
root / root
0644
encoders.cpython-36.opt-1.pyc
1.604 KB
5 Dec 2024 1.10 PM
root / root
0644
encoders.cpython-36.opt-2.pyc
1.261 KB
5 Dec 2024 1.10 PM
root / root
0644
encoders.cpython-36.pyc
1.604 KB
5 Dec 2024 1.10 PM
root / root
0644
errors.cpython-36.opt-1.pyc
6.201 KB
5 Dec 2024 1.10 PM
root / root
0644
errors.cpython-36.opt-2.pyc
4.657 KB
5 Dec 2024 1.10 PM
root / root
0644
errors.cpython-36.pyc
6.201 KB
5 Dec 2024 1.10 PM
root / root
0644
feedparser.cpython-36.opt-1.pyc
10.246 KB
5 Dec 2024 1.10 PM
root / root
0644
feedparser.cpython-36.opt-2.pyc
8.62 KB
5 Dec 2024 1.10 PM
root / root
0644
feedparser.cpython-36.pyc
10.396 KB
5 Dec 2024 1.10 PM
root / root
0644
generator.cpython-36.opt-1.pyc
12.63 KB
5 Dec 2024 1.10 PM
root / root
0644
generator.cpython-36.opt-2.pyc
9.021 KB
5 Dec 2024 1.10 PM
root / root
0644
generator.cpython-36.pyc
12.63 KB
5 Dec 2024 1.10 PM
root / root
0644
header.cpython-36.opt-1.pyc
16.096 KB
5 Dec 2024 1.10 PM
root / root
0644
header.cpython-36.opt-2.pyc
10.604 KB
5 Dec 2024 1.10 PM
root / root
0644
header.cpython-36.pyc
16.096 KB
5 Dec 2024 1.10 PM
root / root
0644
headerregistry.cpython-36.opt-1.pyc
20.727 KB
5 Dec 2024 1.10 PM
root / root
0644
headerregistry.cpython-36.opt-2.pyc
15.091 KB
5 Dec 2024 1.10 PM
root / root
0644
headerregistry.cpython-36.pyc
20.781 KB
5 Dec 2024 1.10 PM
root / root
0644
iterators.cpython-36.opt-1.pyc
1.867 KB
5 Dec 2024 1.10 PM
root / root
0644
iterators.cpython-36.opt-2.pyc
1.26 KB
5 Dec 2024 1.10 PM
root / root
0644
iterators.cpython-36.pyc
1.867 KB
5 Dec 2024 1.10 PM
root / root
0644
message.cpython-36.opt-1.pyc
37.104 KB
5 Dec 2024 1.10 PM
root / root
0644
message.cpython-36.opt-2.pyc
20.9 KB
5 Dec 2024 1.10 PM
root / root
0644
message.cpython-36.pyc
37.104 KB
5 Dec 2024 1.10 PM
root / root
0644
parser.cpython-36.opt-1.pyc
5.593 KB
5 Dec 2024 1.10 PM
root / root
0644
parser.cpython-36.opt-2.pyc
2.644 KB
5 Dec 2024 1.10 PM
root / root
0644
parser.cpython-36.pyc
5.593 KB
5 Dec 2024 1.10 PM
root / root
0644
policy.cpython-36.opt-1.pyc
9.395 KB
5 Dec 2024 1.10 PM
root / root
0644
policy.cpython-36.opt-2.pyc
3.323 KB
5 Dec 2024 1.10 PM
root / root
0644
policy.cpython-36.pyc
9.395 KB
5 Dec 2024 1.10 PM
root / root
0644
quoprimime.cpython-36.opt-1.pyc
7.502 KB
5 Dec 2024 1.10 PM
root / root
0644
quoprimime.cpython-36.opt-2.pyc
4.106 KB
5 Dec 2024 1.10 PM
root / root
0644
quoprimime.cpython-36.pyc
7.502 KB
5 Dec 2024 1.10 PM
root / root
0644
utils.cpython-36.opt-1.pyc
12.897 KB
5 Dec 2024 1.10 PM
root / root
0644
utils.cpython-36.opt-2.pyc
9.206 KB
5 Dec 2024 1.10 PM
root / root
0644
utils.cpython-36.pyc
12.897 KB
5 Dec 2024 1.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF