Your IP : 18.225.54.147


Current Path : /usr/lib64/python3.6/email/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/email/__pycache__/parser.cpython-36.opt-2.pyc

3


 \��@s|ddddddgZddlmZmZddlmZmZdd	lmZGd
d�d�Z	Gdd�de	�Z
Gdd�d�ZGd
d�de�ZdS)�Parser�HeaderParser�BytesParser�BytesHeaderParser�
FeedParser�BytesFeedParser�)�StringIO�
TextIOWrapper)rr)�compat32c@s0eZdZd
ed�dd�Zddd�Zddd	�ZdS)
rN)�policycCs||_||_dS)N)�_classr)�selfrr�r�$/usr/lib64/python3.6/email/parser.py�__init__szParser.__init__FcCsDt|j|jd�}|r|j�x|jd�}|s.P|j|�qW|j�S)N)ri )rrrZ_set_headersonly�readZfeed�close)r
�fp�headersonlyZ
feedparser�datarrr�parse*s
zParser.parsecCs|jt|�|d�S)N)r)rr)r
�textrrrr�parsestr<szParser.parsestr)N)F)F)�__name__�
__module__�__qualname__r
rrrrrrrrs
c@s eZdZddd�Zddd�ZdS)	rTcCstj||d�S)NT)rr)r
rrrrrrIszHeaderParser.parsecCstj||d�S)NT)rr)r
rrrrrrLszHeaderParser.parsestrN)T)T)rrrrrrrrrrHs
c@s(eZdZdd�Zd	dd�Zd
dd�ZdS)rcOst||�|_dS)N)r�parser)r
�args�kwrrrrRszBytesParser.__init__Fc
Cs,t|ddd�}z|jj||�S|j�XdS)N�ascii�surrogateescape)�encoding�errors)r	rr�detach)r
rrrrrrdszBytesParser.parsecCs|jddd�}|jj||�S)N�ASCIIr )r")�decoderr)r
rrrrr�
parsebytessszBytesParser.parsebytesN)F)F)rrrrrr&rrrrrPs
c@s eZdZddd�Zddd�ZdS)	rTcCstj||dd�S)NT)r)rr)r
rrrrrr�szBytesHeaderParser.parsecCstj||dd�S)NT)r)rr&)r
rrrrrr&�szBytesHeaderParser.parsebytesN)T)T)rrrrr&rrrrrs
N)
�__all__�iorr	Zemail.feedparserrrZemail._policybaser
rrrrrrrr�<module>s7/

?>