diff -r 78f1de3f4be7 -r 06de08b36c82 hgext/lfs/blobstore.py --- a/hgext/lfs/blobstore.py Tue Mar 08 10:58:22 2022 +0100 +++ b/hgext/lfs/blobstore.py Mon Feb 21 11:24:57 2022 -0700 @@ -273,7 +273,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) return reason @@ -406,7 +406,7 @@ ) def encodestr(x): - if isinstance(x, pycompat.unicode): + if isinstance(x, str): return x.encode('utf-8') return x