diff options
author | Guido van Rossum <guido@python.org> | 2007-08-25 13:43:02 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-25 13:43:02 +0000 |
commit | 6398b7a351d04408fa8ce0204d78559e8d6ac98f (patch) | |
tree | 5f274983fa91009d1a7b4bfa26de59a83942581f /Lib/email/mime/text.py | |
parent | f616b224506ef17ac9ab4378c92b99ae816b88f7 (diff) | |
download | cpython-git-6398b7a351d04408fa8ce0204d78559e8d6ac98f.tar.gz |
Remove the email package for now.
Once Barry and the email-sig have a working new version
we'll add it back.
If it doesn't make the 3.0a deadline (release August 31), too bad.
Diffstat (limited to 'Lib/email/mime/text.py')
-rw-r--r-- | Lib/email/mime/text.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Lib/email/mime/text.py b/Lib/email/mime/text.py deleted file mode 100644 index 5747db5d67..0000000000 --- a/Lib/email/mime/text.py +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (C) 2001-2006 Python Software Foundation -# Author: Barry Warsaw -# Contact: email-sig@python.org - -"""Class representing text/* type MIME documents.""" - -__all__ = ['MIMEText'] - -from email.encoders import encode_7or8bit -from email.mime.nonmultipart import MIMENonMultipart - - - -class MIMEText(MIMENonMultipart): - """Class for generating text/* type MIME documents.""" - - def __init__(self, _text, _subtype='plain', _charset='us-ascii'): - """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. - """ - MIMENonMultipart.__init__(self, 'text', _subtype, - **{'charset': _charset}) - self.set_payload(_text, _charset) |