summaryrefslogtreecommitdiffstats
path: root/Lib/email/MIMEAudio.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email/MIMEAudio.py')
-rw-r--r--Lib/email/MIMEAudio.py10
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)