Show More
@@ -20,6 +20,7 b' from .i18n import _' | |||||
20 | from . import ( |
|
20 | from . import ( | |
21 | encoding, |
|
21 | encoding, | |
22 | error, |
|
22 | error, | |
|
23 | pycompat, | |||
23 | sslutil, |
|
24 | sslutil, | |
24 | util, |
|
25 | util, | |
25 | ) |
|
26 | ) | |
@@ -218,7 +219,7 b' def mimetextqp(body, subtype, charset):' | |||||
218 | ''' |
|
219 | ''' | |
219 | cs = email.charset.Charset(charset) |
|
220 | cs = email.charset.Charset(charset) | |
220 | msg = email.message.Message() |
|
221 | msg = email.message.Message() | |
221 | msg.set_type('text/' + subtype) |
|
222 | msg.set_type(pycompat.sysstr('text/' + subtype)) | |
222 |
|
223 | |||
223 | for line in body.splitlines(): |
|
224 | for line in body.splitlines(): | |
224 | if len(line) > 950: |
|
225 | if len(line) > 950: |
General Comments 0
You need to be logged in to leave comments.
Login now