Submitter | phabricator |
---|---|
Date | Feb. 12, 2018, 1:40 a.m. |
Message ID | <769de2883723d021953886000e90cddf@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/27613/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -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: