hgext/lfs/blobstore.py
changeset 48934 06de08b36c82
parent 48875 6000f5b25c9b
child 48946 642e31cb55f0
--- 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