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