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 claudep
Recipients barry, claudep, r.david.murray
Date 2016-07-02.21:13:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2016-07-02 21:13:07claudepsetrecipients: + claudep, barry, r.david.murray
2016-07-02 21:13:07claudepsetmessageid: <>
2016-07-02 21:13:07claudeplinkissue27445 messages
2016-07-02 21:13:07claudepcreate