This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jnelson
Recipients jnelson
Date 2009-10-13.18:58:04
SpamBayes Score 0.00646766
Marked as misclassified No
Message-id <1255460286.78.0.388078271026.issue7119@psf.upfronthosting.co.za>
In-reply-to
Content
import os
try:
  from email.mime.multipart import MIMEMultipart
except ImportError:
  from email.MIMEMultipart import MIMEMultipart

m = MIMEMultipart('form-data')

print m.items()
m.as_string()
print m.items()


print out:

[('Content-Type', 'multipart/form-data'), ('MIME-Version', '1.0')]
[('Content-Type', 'multipart/form-data;
boundary="===============0836597002796039051=="'), ('MIME-Version', '1.0')]

The latter is correct, the former is not - it is missing the boundary!
items() should behave the same regardless of whether or not as_string()
has been called.


Confirmed in 2.4 and 2.6
History
Date User Action Args
2009-10-13 18:58:07jnelsonsetrecipients: + jnelson
2009-10-13 18:58:06jnelsonsetmessageid: <1255460286.78.0.388078271026.issue7119@psf.upfronthosting.co.za>
2009-10-13 18:58:05jnelsonlinkissue7119 messages
2009-10-13 18:58:04jnelsoncreate