# HG changeset patch # User Matt Harbison # Date 1575101717 18000 # Node ID 10662ac7849e0be55ab183e1b0b4c9f2971bd472 # Parent 24d0189238f1b5f06df2b2ad632babc2a463ac75 pvec: fix a `str` type conditional for py3 Differential Revision: https://phab.mercurial-scm.org/D7538 diff -r 24d0189238f1 -r 10662ac7849e 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: