D7537: githelp: fix a `str` type conditional for py3

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Mon Dec 2 16:56:04 EST 2019


Closed by commit rHG24d0189238f1: githelp: fix a `str` type conditional for py3 (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7537?vs=18413&id=18430

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7537/new/

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

AFFECTED FILES
  hgext/githelp.py

CHANGE DETAILS

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



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


More information about the Mercurial-devel mailing list