Patchwork D7538: pvec: 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-bqx25uj3cvideyp42dwk-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43547/
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/D7538

AFFECTED FILES
  mercurial/pvec.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
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: