o
    ,º]  ã                   @   sZ   d Z ddlmZ ddlmZ ddlm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.é    )Úunicode_literals)Údivision)Úabsolute_importÚMIMEText)Úencode_7or8bit)ÚMIMENonMultipartc                   @   s   e Zd ZdZddd„ZdS )r   z0Class for generating text/* type MIME documents.ÚplainNc                 C   s\   |du rz	|  d¡ d}W n ty   d}Y nw tj| d|fi d|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ÚtextÚcharset)ÚencodeÚUnicodeEncodeErrorr   Ú__init__Úset_payload)ÚselfÚ_textÚ_subtypeÚ_charset© r   úB/usr/lib/python3/dist-packages/future/backports/email/mime/text.pyr      s   
ÿÿzMIMEText.__init__)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s    N)r   Ú
__future__r   r   r   Ú__all__Úfuture.backports.email.encodersr   Ú(future.backports.email.mime.nonmultipartr   r   r   r   r   r   Ú<module>   s   