diff hgext/win32mbcs.py @ 49025:06de08b36c82

py3: use str instead of pycompat.unicode pycompat.unicode is an alias to str. Differential Revision: https://phab.mercurial-scm.org/D12340
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 11:24:57 -0700
parents 6000f5b25c9b
children 48d9af6bd043
line wrap: on
line diff
--- 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):