hgext/convert/convcmd.py
changeset 48934 06de08b36c82
parent 48913 f254fc73d956
child 48941 fd5b8e696b75
--- a/hgext/convert/convcmd.py	Tue Mar 08 10:58:22 2022 +0100
+++ b/hgext/convert/convcmd.py	Mon Feb 21 11:24:57 2022 -0700
@@ -86,7 +86,7 @@
 
 
 def recode(s):
-    if isinstance(s, pycompat.unicode):
+    if isinstance(s, str):
         return s.encode(pycompat.sysstr(orig_encoding), 'replace')
     else:
         return s.decode('utf-8').encode(