B
    ²ô`•  ã               @   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 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   z,Class representing message/* MIME documents.Ú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)ÚselfÚ_msgÚ_subtype© r   úR/home/dcms/DCMS/lib/python3.7/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   