Show More
@@ -279,7 +279,9 b' def mimetextqp(body, subtype, charset):' | |||
|
279 | 279 | '''Return MIME message. |
|
280 | 280 | Quoted-printable transfer encoding will be used if necessary. |
|
281 | 281 | ''' |
|
282 | cs = email.charset.Charset(charset) | |
|
282 | # Experimentally charset is okay as a bytes even if the type | |
|
283 | # stubs disagree. | |
|
284 | cs = email.charset.Charset(charset) # pytype: disable=wrong-arg-types | |
|
283 | 285 | msg = email.message.Message() |
|
284 | 286 | msg.set_type(pycompat.sysstr(b'text/' + subtype)) |
|
285 | 287 |
General Comments 0
You need to be logged in to leave comments.
Login now