AlkantarClanX12

Your IP : 3.145.164.47


Current Path : /opt/alt/python310/lib64/python3.10/email/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/email/__pycache__/parser.cpython-310.opt-2.pyc

o

6��f��@sv	gd�ZddlmZmZddlmZmZddlmZGdd�d�Z	Gdd�de	�Z
Gd	d
�d
�ZGdd�de�Zd
S))�Parser�HeaderParser�BytesParser�BytesHeaderParser�
FeedParser�BytesFeedParser�)�StringIO�
TextIOWrapper)rr)�compat32c@s0eZdZd
ed�dd�Zddd�Zddd	�ZdS)rN��policycCs	||_||_dS�N)�_classr)�selfrr�r�3/opt/alt/python310/lib64/python3.10/email/parser.py�__init__s
zParser.__init__FcCsD	t|j|jd�}|r|��	|�d�}|s	|��S|�|�q)NrTi )rrrZ_set_headersonly�readZfeed�close)r�fp�headersonlyZ
feedparser�datarrr�parse)s

��zParser.parsecCs	|jt|�|d�S)N�r)rr�r�textrrrr�parsestr;szParser.parsestrr
�F)�__name__�
__module__�__qualname__r
rrrrrrrrs
rc@� eZdZddd�Zddd�ZdS)rTcC�t�||d�S�NT)rr�rrrrrrrH�zHeaderParser.parsecCr"r#)rrrrrrrKr%zHeaderParser.parsestrN�T)rrr rrrrrrrG�
rc@s(eZdZdd�Zd	dd�Zd	dd�ZdS)
rcOs	t|i|��|_dSr
)r�parser)r�args�kwrrrrQszBytesParser.__init__FcCs4	t|ddd�}z|j�||�W|��S|��w)N�ascii�surrogateescape)�encoding�errors)r	r(r�detachr$rrrrcs
zBytesParser.parsecCs	|jddd�}|j�||�S)N�ASCIIr,)r.)�decoder(rrrrr�
parsebytesrszBytesParser.parsebytesNr)rrr rrr2rrrrrOs
rc@r!)rTcC�tj||dd�S�NTr)rrr$rrrr�zBytesHeaderParser.parsecCr3r4)rr2rrrrr2�r5zBytesHeaderParser.parsebytesNr&)rrr rr2rrrrr~r'rN)
�__all__�iorr	Zemail.feedparserrrZemail._policybaser
rrrrrrrr�<module>s7/