githelp: fix a `str` type conditional for py3 stable
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 30 Nov 2019 03:02:53 -0500
branchstable
changeset 43745 24d0189238f1
parent 43744 40db695040eb
child 43746 10662ac7849e
githelp: fix a `str` type conditional for py3 Differential Revision: https://phab.mercurial-scm.org/D7537
hgext/githelp.py
--- a/hgext/githelp.py	Sat Nov 30 03:01:44 2019 -0500
+++ b/hgext/githelp.py	Sat Nov 30 03:02:53 2019 -0500
@@ -115,7 +115,7 @@
     args = list([convert(x) for x in args])
     opts = dict(
         [
-            (k, convert(v)) if isinstance(v, str) else (k, v)
+            (k, convert(v)) if isinstance(v, bytes) else (k, v)
             for k, v in pycompat.iteritems(opts)
         ]
     )