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 )
,Class representing message/* MIME documents.    )unicode_literals)division)absolute_importMIMEMessage)message)MIMENonMultipartc                   @   s   e Zd ZdZdddZdS )r   r   rfc822c                 C   s>   t | d| t|tjs"tdtj| | | d dS )a  Create a message/* type MIME document.

        _msg is a message object and must be an instance of Message, or a
        derived class of Message, otherwise a TypeError is raised.

        Optional _subtype defines the subtype of the contained message.  The
        default is "rfc822" (this is defined by the MIME standard, even though
        the term "rfc822" is technically outdated by RFC 2822).
        r   z&Argument is not an instance of Messagezmessage/rfc822N)r   __init__
isinstancer   Message	TypeErrorattachset_default_type)selfZ_msg_subtype r   U/var/www/html/venv/lib/python3.8/site-packages/future/backports/email/mime/message.pyr
      s
    
zMIMEMessage.__init__N)r	   )__name__
__module____qualname____doc__r
   r   r   r   r   r      s   N)r   
__future__r   r   r   __all__Zfuture.backports.emailr   Z(future.backports.email.mime.nonmultipartr   r   r   r   r   r   <module>   s   