--- MIMEMultipart_orig.py 2004-01-25 08:39:45.000000000 +0200 +++ MIMEMultipart.py 2004-01-25 09:03:42.000000000 +0200 @@ -11,7 +11,7 @@ class MIMEMultipart(MIMEBase.MIMEBase): """Base class for MIME multipart/* type messages.""" - def __init__(self, _subtype='mixed', boundary=None, *_subparts, **_params): + def __init__(self, _subtype='mixed', boundary=None, _subparts=None, **_params): """Creates a multipart/* type message. By default, creates a multipart/mixed message, with proper @@ -24,7 +24,7 @@ calculated as needed. _subparts is a sequence of initial subparts for the payload. It - must be possible to convert this sequence to a list. You can always + must be an iterable object, such as a list. You can always attach new subparts to the message by using the attach() method. Additional parameters for the Content-Type header are taken from the @@ -32,6 +32,6 @@ """ MIMEBase.MIMEBase.__init__(self, 'multipart', _subtype, **_params) if _subparts: - self.attach(*list(_subparts)) + for p in _subparts: self.attach(p) if boundary: self.set_boundary(boundary)