hgext/convert/darcs.py
changeset 38312 79dd61a4554f
parent 38165 2ce60954b1b7
child 38466 2c2e82469b89
--- a/hgext/convert/darcs.py	Fri Jun 15 02:07:39 2018 +0530
+++ b/hgext/convert/darcs.py	Wed Jun 13 22:51:08 2018 +0530
@@ -104,7 +104,7 @@
         shutil.rmtree(self.tmppath, ignore_errors=True)
 
     def recode(self, s, encoding=None):
-        if isinstance(s, unicode):
+        if isinstance(s, pycompat.unicode):
             # XMLParser returns unicode objects for anything it can't
             # encode into ASCII. We convert them back to str to get
             # recode's normal conversion behavior.