Patchwork D7535: win32mbcs: fix a `str` type conditional for py3

login
register
mail settings
Submitter phabricator
Date Nov. 30, 2019, 5:09 p.m.
Message ID <differential-rev-PHID-DREV-spojziufnu2mizrjrfpr-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43545/
State Superseded
Headers show

Comments

phabricator - Nov. 30, 2019, 5:09 p.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7535

AFFECTED FILES
  hgext/win32mbcs.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/win32mbcs.py b/hgext/win32mbcs.py
--- a/hgext/win32mbcs.py
+++ b/hgext/win32mbcs.py
@@ -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