changeset 43448:66210a20f727 stable

win32mbcs: fix a `str` type conditional for py3 Differential Revision: https://phab.mercurial-scm.org/D7535
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 30 Nov 2019 02:59:04 -0500
parents 6ff1a0d109c9
children 40db695040eb
files hgext/win32mbcs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/win32mbcs.py	Sat Nov 30 02:53:39 2019 -0500
+++ b/hgext/win32mbcs.py	Sat Nov 30 02:59:04 2019 -0500
@@ -77,7 +77,7 @@
 
 
 def decode(arg):
-    if isinstance(arg, str):
+    if isinstance(arg, bytes):
         uarg = arg.decode(_encoding)
         if arg == uarg.encode(_encoding):
             return uarg