--- a/mercurial/pvec.py Wed Nov 06 15:29:28 2019 -0500 +++ b/mercurial/pvec.py Wed Nov 06 15:15:00 2019 -0500 @@ -76,7 +76,7 @@ def _str(v, l): bs = b"" for p in pycompat.xrange(l): - bs = chr(v & 255) + bs + bs = pycompat.bytechr(v & 255) + bs v >>= 8 return bs