hgext/win32mbcs.py
changeset 48934 06de08b36c82
parent 48875 6000f5b25c9b
child 50739 48d9af6bd043
--- a/hgext/win32mbcs.py	Tue Mar 08 10:58:22 2022 +0100
+++ b/hgext/win32mbcs.py	Mon Feb 21 11:24:57 2022 -0700
@@ -94,7 +94,7 @@
 
 
 def encode(arg):
-    if isinstance(arg, pycompat.unicode):
+    if isinstance(arg, str):
         return arg.encode(_encoding)
     elif isinstance(arg, tuple):
         return tuple(map(encode, arg))
@@ -135,7 +135,7 @@
 
 
 def wrapper(func, args, kwds):
-    return basewrapper(func, pycompat.unicode, encode, decode, args, kwds)
+    return basewrapper(func, str, encode, decode, args, kwds)
 
 
 def reversewrapper(func, args, kwds):