Your IP : 18.225.54.147
3
\� � @ s| d dddddgZ ddlmZmZ ddlmZmZ dd lmZ G d
d � d �Z G dd� de �Z
G dd� d�ZG d
d� de�ZdS )�Parser�HeaderParser�BytesParser�BytesHeaderParser�
FeedParser�BytesFeedParser� )�StringIO�
TextIOWrapper)r r )�compat32c @ s0 e Zd Zd
ed�dd�Zddd�Zddd �ZdS )
r N)�policyc C s || _ || _d S )N)�_classr )�selfr r � r �$/usr/lib64/python3.6/email/parser.py�__init__ s zParser.__init__Fc C sD t | j| jd�}|r|j� x|jd�}|s.P |j|� qW |j� S )N)r i )r r r Z_set_headersonly�readZfeed�close)r
�fp�headersonlyZ
feedparser�datar r r �parse* s
zParser.parsec C s | j t|�|d�S )N)r )r r )r
�textr r r r �parsestr<