Changes between Initial Version and Version 1 of Ticket #24623, comment 4
- Timestamp:
- Jul 17, 2015, 4:50:19 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24623, comment 4
initial v1 2 2 Files opened in binary mode (including 'b' in the mode argument) return contents as bytes objects without any decoding. 3 3 4 `EmailMessage.attach_file()` opens a attachment file with 'rb' mode. which results in a `bytes` object content. In case of a `text` base mimetype, content is beeing sent to python's `MimeText`, and then `encode()` fails on `bytes` object.4 `EmailMessage.attach_file()` opens an attachment file with 'rb' mode. which results in a `bytes` object content. In case of a `text` base mimetype, content is beeing sent to python's `MimeText`, and then `encode()` fails on `bytes` object. 5 5 6 6 I attached a simple workaround patch.