ó
è¾bc           @   sI   d  Z  d g Z d d l m Z d d l m Z d e f d „  ƒ  YZ d S(   s,   Class representing message/* MIME documents.t   MIMEMessageiÿÿÿÿ(   t   message(   t   MIMENonMultipartc           B   s   e  Z d  Z d d „ Z RS(   s,   Class representing message/* MIME documents.t   rfc822c         C   sX   t  j |  d | ƒ t | t j ƒ s4 t d ƒ ‚ n  t j j |  | ƒ |  j d ƒ d S(   sš  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   s&   Argument is not an instance of Messages   message/rfc822N(   R   t   __init__t
   isinstanceR   t   Messaget	   TypeErrort   attacht   set_default_type(   t   selft   _msgt   _subtype(    (    s(   /usr/lib/python2.7/email/mime/message.pyR      s
    
(   t   __name__t
   __module__t   __doc__R   (    (    (    s(   /usr/lib/python2.7/email/mime/message.pyR       s   N(   R   t   __all__t   emailR   t   email.mime.nonmultipartR   R    (    (    (    s(   /usr/lib/python2.7/email/mime/message.pyt   <module>   s   	