B
`ܤ3³·Tã @ s6 d Z dgZddlmZ ddlmZ G dd„ deƒZdS )z.Class representing text/* type MIME documents.ÚMIMETexté )Ú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-8Útextr Úcharset)ÚencodeÚUnicodeEncodeErrorr Ú__init__ÚstrZset_payload)ÚselfZ_textZ_subtypeZ_charsetr © r ú4/opt/alt/python37/lib64/python3.7/email/mime/text.pyr s
zMIMEText.__init__)r N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r r r r s N)r Ú__all__Z
email.charsetr Zemail.mime.nonmultipartr r r r r r Ú