changeset 36047 | 1407c42b302c |
parent 35151 | b45a9d121b53 |
child 36118 | 9e47bfbeb723 |
--- a/mercurial/mail.py Sun Feb 11 14:18:27 2018 -0800 +++ b/mercurial/mail.py Sun Feb 11 14:25:10 2018 -0800 @@ -20,6 +20,7 @@ from . import ( encoding, error, + pycompat, sslutil, util, ) @@ -218,7 +219,7 @@ ''' cs = email.charset.Charset(charset) msg = email.message.Message() - msg.set_type('text/' + subtype) + msg.set_type(pycompat.sysstr('text/' + subtype)) for line in body.splitlines(): if len(line) > 950: