changeset 43450:24d0189238f1 stable

githelp: fix a `str` type conditional for py3 Differential Revision: https://phab.mercurial-scm.org/D7537
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 30 Nov 2019 03:02:53 -0500
parents 40db695040eb
children 10662ac7849e
files hgext/githelp.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
         ]
     )