Senthil Kumaran <orsent...@gmail.com> added the comment:

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.

----------
nosy: +orsenthil

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1368247>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to