Message104416
Hi David,
The attached patch for this issue:
+ if isinstance(payload, unicode):
+ payload = payload.encode(msg.get_charset().output_charset or 'us-ascii')
looks fine enough to me. Are you worried about the /or 'us-ascii'/ part of this patch?
IMHO, the patch may prevent the straight forward Exception for which the issue was raised.
But on a larger scale, it is advisable to document MIMEText usage wth encoding as you mentioned. |
|
Date |
User |
Action |
Args |
2010-04-28 07:29:11 | orsenthil | set | recipients:
+ orsenthil, loewis, barry, vstinner, gdamjan, maxua, r.david.murray, bgamari, l0nwlf |
2010-04-28 07:29:10 | orsenthil | set | messageid: <1272439750.05.0.661744431878.issue1368247@psf.upfronthosting.co.za> |
2010-04-28 07:29:08 | orsenthil | link | issue1368247 messages |
2010-04-28 07:29:07 | orsenthil | create | |
|