Changes between Initial Version and Version 1 of Ticket #24623, comment 4


Ignore:
Timestamp:
Jul 17, 2015, 4:50:19 PM (9 years ago)
Author:
Konrad Świat

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24623, comment 4

    initial v1  
    22   Files opened in binary mode (including 'b' in the mode argument) return contents as bytes objects without any decoding.
    33
    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.
    55
    66I attached a simple workaround patch.
Back to Top