Mercurial > hg
changeset 51796:8f629783b8ae stable
import: fix erroneous comparison of str with bytes
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 09 Aug 2024 14:26:13 +0200 |
parents | 73476a9e5ced |
children | 187d7c859be7 |
files | mercurial/patch.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/patch.py Thu Aug 08 17:28:38 2024 +0400 +++ b/mercurial/patch.py Fri Aug 09 14:26:13 2024 +0200 @@ -122,7 +122,7 @@ if not m.is_multipart(): yield msgfp(m) else: - ok_types = (b'text/plain', b'text/x-diff', b'text/x-patch') + ok_types = ('text/plain', 'text/x-diff', 'text/x-patch') for part in m.walk(): ct = part.get_content_type() if ct not in ok_types: