관리-도구
편집 파일: parser.cpython-310.opt-2.pyc
o 6��f� � @ sv g d �Z ddlmZmZ ddlmZmZ ddlmZ G dd� d�Z G dd� de �Z G d d � d �ZG dd� de�Zd S ))�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 �3/opt/alt/python310/lib64/python3.10/email/parser.py�__init__ s zParser.__init__Fc C sD t | j| jd�}|r|�� |�d�}|s |�� S |�|� q)Nr Ti )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; s zParser.parsestrr �F)�__name__� __module__�__qualname__r r r r r r r r r s r c @ � e Zd Zddd�Zddd�ZdS )r Tc C � t �| |d�S �NT)r r �r r r r r r r H � zHeaderParser.parsec C r"