B
�/g^� c @ s6 d Z dgZddlmZ ddlmZ G dd� de�ZdS )z.Class representing text/* type MIME documents.�MIMETexti )�Charset)�MIMENonMultipartc @ s e Zd ZdZddd�dd�ZdS )r z0Class for generating text/* type MIME documents.�plainN)�policyc C sf |dkr4y|� d� d}W n tk
r2 d}Y nX tj| d|fd|idt|�i�� | �||� dS )a~ Create a text/* type MIME document.
_text is the string for this message object.
_subtype is the MIME sub content type, defaulting to "plain".
_charset is the character set parameter added to the Content-Type
header. This defaults to "us-ascii". Note that as a side-effect, the
Content-Transfer-Encoding header will also be set.
Nzus-asciizutf-8Ztextr Zcharset)ZencodeZUnicodeEncodeErrorr �__init__ZstrZset_payload)ZselfZ_textZ_subtypeZ_charsetr � r �'/usr/lib64/python3.7/email/mime/text.pyr s
zMIMEText.__init__)r N)Z__name__Z
__module__Z__qualname__�__doc__r r r r r r s N)r Z__all__Z
email.charsetr Zemail.mime.nonmultipartr r r r r r Z<module> s