New submission from Johannes Reiff <m...@jreiff.de>:
If assigning binary content to an EmailMessage via set_content(), the function email.contentmanager.set_bytes_content() is called. This function fails when choosing the 7bit transfer encoding because of a call to data.decode('ascii'). ---------- components: email messages: 374337 nosy: Johannes Reiff, barry, r.david.murray priority: normal severity: normal status: open title: email: ContentManager.set_content calls nonexistent method encode() on bytes versions: Python 3.10, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41402> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com