pvec: fix a `str` type conditional for py3 stable
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 30 Nov 2019 03:15:17 -0500
branchstable
changeset 43746 10662ac7849e
parent 43745 24d0189238f1
child 43747 5470e63686ca
pvec: fix a `str` type conditional for py3 Differential Revision: https://phab.mercurial-scm.org/D7538
mercurial/pvec.py
--- a/mercurial/pvec.py	Sat Nov 30 03:02:53 2019 -0500
+++ b/mercurial/pvec.py	Sat Nov 30 03:15:17 2019 -0500
@@ -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: