
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 text/* type MIME documents.t   MIMETexti(   t   encode_7or8bit(   t   MIMENonMultipartc           B   s   e  Z d  Z d d d  Z RS(   s0   Class for generating text/* type MIME documents.t   plains   us-asciic         C   s1   t  j |  d | i | d 6 |  j | |  d S(   s~  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.
        t   textt   charsetN(   R   t   __init__t   set_payload(   t   selft   _textt   _subtypet   _charset(    (    s%   /usr/lib/python2.7/email/mime/text.pyR      s    (   t   __name__t
   __module__t   __doc__R   (    (    (    s%   /usr/lib/python2.7/email/mime/text.pyR       s   N(   R   t   __all__t   email.encodersR   t   email.mime.nonmultipartR   R    (    (    (    s%   /usr/lib/python2.7/email/mime/text.pyt   <module>   s   	