Patchwork D7538: pvec: fix a `str` type conditional for py3

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2019, 9:55 p.m.
Message ID <08d3d7553aa238f3fc2a19554182743c@localhost.localdomain>
Download mbox | patch
Permalink /patch/43571/
State Not Applicable
Headers show

Comments

phabricator - Dec. 2, 2019, 9:55 p.m.
Closed by commit rHG10662ac7849e: pvec: 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/D7538?vs=18414&id=18431

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

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

AFFECTED FILES
  mercurial/pvec.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/pvec.py b/mercurial/pvec.py
--- a/mercurial/pvec.py
+++ b/mercurial/pvec.py
@@ -182,7 +182,7 @@ 
 
 class pvec(object):
     def __init__(self, hashorctx):
-        if isinstance(hashorctx, str):
+        if isinstance(hashorctx, bytes):
             self._bs = hashorctx
             self._depth, self._vec = _split(util.b85decode(hashorctx))
         else: