
-c`                 @   sI   d  Z  d g Z d d l m Z d d l m Z Gd 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  Z d S)r   z0Class for generating text/* type MIME documents.ZplainNc             C   s   | d k r> y | j  d  d } Wn t k
 r= d } Yn Xt | t  rY t |  } t j |  d | d | i  |  j | |  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textcharset)encodeUnicodeEncodeError
isinstancer   strr   __init__Zset_payload)selfZ_textZ_subtypeZ_charset r   %/usr/lib/python3.5/email/mime/text.pyr      s    
zMIMEText.__init__)__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   	