diff options
author | Barry Warsaw <barry@python.org> | 2002-06-02 19:05:08 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-06-02 19:05:08 (GMT) |
commit | 524af6f382d1d287763018abc7c6415bb3dad9b5 (patch) | |
tree | 4ffc8af7c52b7b82e0d9038852e2c9b81544f01a /Lib/email/MIMEText.py | |
parent | 7dc865ad726d27a263143865bda59c1a70fde0db (diff) | |
download | cpython-524af6f382d1d287763018abc7c6415bb3dad9b5.zip cpython-524af6f382d1d287763018abc7c6415bb3dad9b5.tar.gz cpython-524af6f382d1d287763018abc7c6415bb3dad9b5.tar.bz2 |
Use absolute import paths for intrapackage imports.
Use MIMENonMultipart as the base class so that you can't attach() to
these non-multipart message types.
Diffstat (limited to 'Lib/email/MIMEText.py')
-rw-r--r-- | Lib/email/MIMEText.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/email/MIMEText.py b/Lib/email/MIMEText.py index 8669d28..048f544 100644 --- a/Lib/email/MIMEText.py +++ b/Lib/email/MIMEText.py @@ -5,12 +5,12 @@ """ import warnings -import MIMEBase -from Encoders import encode_7or8bit +from email.MIMENonMultipart import MIMENonMultipart +from email.Encoders import encode_7or8bit -class MIMEText(MIMEBase.MIMEBase): +class MIMEText(MIMENonMultipart): """Class for generating text/* type MIME documents.""" def __init__(self, _text, _subtype='plain', _charset='us-ascii', @@ -33,8 +33,8 @@ class MIMEText(MIMEBase.MIMEBase): override any header settings indicated by _charset. This is probably not what you want. """ - MIMEBase.MIMEBase.__init__(self, 'text', _subtype, - **{'charset': _charset}) + MIMENonMultipart.__init__(self, 'text', _subtype, + **{'charset': _charset}) if _text and _text[-1] <> '\n': _text += '\n' self.set_payload(_text, _charset) |