hgext/convert/darcs.py
changeset 48934 06de08b36c82
parent 48875 6000f5b25c9b
child 49306 2e726c934fcd
--- a/hgext/convert/darcs.py	Tue Mar 08 10:58:22 2022 +0100
+++ b/hgext/convert/darcs.py	Mon Feb 21 11:24:57 2022 -0700
@@ -113,7 +113,7 @@
         shutil.rmtree(self.tmppath, ignore_errors=True)
 
     def recode(self, s, encoding=None):
-        if isinstance(s, pycompat.unicode):
+        if isinstance(s, str):
             # 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.