B
    0*™\Ç  ã               @   s6   d Z dgZddlmZ ddlmZ G dd„ deƒZdS )z.Class representing text/* type MIME documents.ÚMIMETexté    )ÚCharset)ÚMIMENonMultipartc               @   s    e Zd ZdZdddœdd„ZdS )r   z0Class for generating text/* type MIME documents.ÚplainN)Úpolicyc            C   sf   |dkr4y|  d¡ d}W n tk
r2   d}Y nX tj| d|fd|idt|ƒi—Ž |  ||¡ dS )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.
        Nzus-asciizutf-8Útextr   Úcharset)ÚencodeÚUnicodeEncodeErrorr   Ú__init__ÚstrZset_payload)ÚselfZ_textZ_subtypeÚ_charsetr   © r   ú:C:\ALexclude\prg\programme\Python37\Lib\email\mime\text.pyr      s    

zMIMEText.__init__)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s   N)r   Ú__all__Zemail.charsetr   Zemail.mime.nonmultipartr   r   r   r   r   r   Ú<module>   s   