New submission from Claude Paroz:

In issue #16324, I contributed an improvement so as MIMEText __init__ accept 
Charset instances, not only encoding strings. The use case is from Django where 
we customize the Charset.body_encoding before passing it to the MIMEText 
initialization.

Unfortunately, what I didn't notice when Berker adapted my patch is that the 
Charset is casted to its string representation for the whole method, while I 
initially intended to let the unchanged Charset passed to self.set_payload. And 
the test I suggested was not smart enough to detect that.

----------
components: email
messages: 269740
nosy: barry, claudep, r.david.murray
priority: normal
severity: normal
status: open
title: Charset instance not passed to set_payload()
versions: Python 3.6

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

Reply via email to