# HG changeset patch # User Matt Harbison # Date 1575100744 18000 # Node ID 66210a20f727b612a478e7e43fc2f6521fb3e5f1 # Parent 6ff1a0d109c907b11e67df0cecd7327d5648239f win32mbcs: fix a `str` type conditional for py3 Differential Revision: https://phab.mercurial-scm.org/D7535 diff -r 6ff1a0d109c9 -r 66210a20f727 hgext/win32mbcs.py --- 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