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/MIMEAudio.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/MIMEAudio.py')
-rw-r--r-- | Lib/email/MIMEAudio.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/email/MIMEAudio.py b/Lib/email/MIMEAudio.py index 57b7b6d..be8599b 100644 --- a/Lib/email/MIMEAudio.py +++ b/Lib/email/MIMEAudio.py @@ -6,9 +6,9 @@ import sndhdr from cStringIO import StringIO -import MIMEBase -import Errors -import Encoders +from email import Errors +from email import Encoders +from email.MIMENonMultipart import MIMENonMultipart @@ -37,7 +37,7 @@ def _whatsnd(data): -class MIMEAudio(MIMEBase.MIMEBase): +class MIMEAudio(MIMENonMultipart): """Class for generating audio/* MIME documents.""" def __init__(self, _audiodata, _subtype=None, @@ -66,6 +66,6 @@ class MIMEAudio(MIMEBase.MIMEBase): _subtype = _whatsnd(_audiodata) if _subtype is None: raise TypeError, 'Could not find audio MIME subtype' - MIMEBase.MIMEBase.__init__(self, 'audio', _subtype, **_params) + MIMENonMultipart.__init__(self, 'audio', _subtype, **_params) self.set_payload(_audiodata) _encoder(self) |