hgext/win32mbcs.py
branchstable
changeset 49366 288de6f5d724
parent 48934 06de08b36c82
child 50742 48d9af6bd043
--- a/hgext/win32mbcs.py	Thu Jun 16 15:15:03 2022 +0200
+++ b/hgext/win32mbcs.py	Thu Jun 16 15:28:54 2022 +0200
@@ -44,7 +44,6 @@
 
 It is useful for the users who want to commit with UTF-8 log message.
 '''
-from __future__ import absolute_import
 
 import os
 import sys
@@ -95,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))
@@ -136,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):