changeset 48934 | 06de08b36c82 |
parent 48913 | f254fc73d956 |
child 48946 | 642e31cb55f0 |
--- a/mercurial/scmutil.py Tue Mar 08 10:58:22 2022 +0100 +++ b/mercurial/scmutil.py Mon Feb 21 11:24:57 2022 -0700 @@ -227,7 +227,7 @@ except (AttributeError, IndexError): # it might be anything, for example a string reason = inst.reason - if isinstance(reason, pycompat.unicode): + if isinstance(reason, str): # SSLError of Python 2.7.9 contains a unicode reason = encoding.unitolocal(reason) ui.error(_(b"abort: error: %s\n") % stringutil.forcebytestr(reason))