changeset 43746:10662ac7849e stable

pvec: fix a `str` type conditional for py3 Differential Revision: https://phab.mercurial-scm.org/D7538
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 30 Nov 2019 03:15:17 -0500
parents 24d0189238f1
children 5470e63686ca
files mercurial/pvec.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: