hgext/convert/convcmd.py
changeset 38312 79dd61a4554f
parent 37888 73ca1c5e65f8
child 38366 4a6d01b49d91
--- a/hgext/convert/convcmd.py	Fri Jun 15 02:07:39 2018 +0530
+++ b/hgext/convert/convcmd.py	Wed Jun 13 22:51:08 2018 +0530
@@ -55,7 +55,7 @@
 orig_encoding = 'ascii'
 
 def recode(s):
-    if isinstance(s, unicode):
+    if isinstance(s, pycompat.unicode):
         return s.encode(pycompat.sysstr(orig_encoding), 'replace')
     else:
         return s.decode('utf-8').encode(