
xFWgc           @   s<   d  Z  d g Z d d l m Z d e j f d     YZ d S(   s$   Base class for MIME specializations.t   MIMEBasei(   t   messagec           B   s   e  Z d  Z d   Z RS(   s$   Base class for MIME specializations.c         K   sA   t  j j |   d | | f } |  j d | |  d |  d <d S(   s   This constructor adds a Content-Type: and a MIME-Version: header.

        The Content-Type: header is taken from the _maintype and _subtype
        arguments.  Additional parameters for this header are taken from the
        keyword arguments.
        s   %s/%ss   Content-Types   1.0s   MIME-VersionN(   R   t   Messaget   __init__t
   add_header(   t   selft	   _maintypet   _subtypet   _paramst   ctype(    (    s%   /usr/lib/python2.7/email/mime/base.pyR      s    (   t   __name__t
   __module__t   __doc__R   (    (    (    s%   /usr/lib/python2.7/email/mime/base.pyR       s   N(   R   t   __all__t   emailR   R   R    (    (    (    s%   /usr/lib/python2.7/email/mime/base.pyt   <module>   s   	