+++ /dev/null
-# Copyright (C) 2001-2006 Python Software Foundation\r
-# Author: Barry Warsaw\r
-# Contact: email-sig@python.org\r
-\r
-"""Class representing text/* type MIME documents."""\r
-\r
-__all__ = ['MIMEText']\r
-\r
-from email.encoders import encode_7or8bit\r
-from email.mime.nonmultipart import MIMENonMultipart\r
-\r
-\r
-\f\r
-class MIMEText(MIMENonMultipart):\r
- """Class for generating text/* type MIME documents."""\r
-\r
- def __init__(self, _text, _subtype='plain', _charset='us-ascii'):\r
- """Create a text/* type MIME document.\r
-\r
- _text is the string for this message object.\r
-\r
- _subtype is the MIME sub content type, defaulting to "plain".\r
-\r
- _charset is the character set parameter added to the Content-Type\r
- header. This defaults to "us-ascii". Note that as a side-effect, the\r
- Content-Transfer-Encoding header will also be set.\r
- """\r
- MIMENonMultipart.__init__(self, 'text', _subtype,\r
- **{'charset': _charset})\r
- self.set_payload(_text, _charset)\r