changeset 36035 | 95791b275b73 |
parent 35951 | 8b6dd3922f70 |
child 36045 | 04984f2e50ae |
--- a/mercurial/patch.py Sun Feb 11 18:32:37 2018 -0500 +++ b/mercurial/patch.py Sun Feb 11 10:49:00 2018 -0800 @@ -242,7 +242,7 @@ ok_types = ('text/plain', 'text/x-diff', 'text/x-patch') message = '' for part in msg.walk(): - content_type = part.get_content_type() + content_type = pycompat.bytestr(part.get_content_type()) ui.debug('Content-Type: %s\n' % content_type) if content_type not in ok_types: continue