U
    h                     @   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   sZ   |dkr4z| d d}W n tk
r2   d}Y nX tj| d|f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   R/var/www/html/venv/lib/python3.8/site-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__Zfuture.backports.email.encodersr   Z(future.backports.email.mime.nonmultipartr   r   r   r   r   r   <module>   s   