[New-bugs-announce] [issue27445] Charset instance not passed to set_payload()

Claude Paroz report at bugs.python.org
Sat Jul 2 17:13:07 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue27445>
_______________________________________


More information about the New-bugs-announce mailing list