pvec: fix overlooked chr() call
authorAugie Fackler <augie@google.com>
Wed, 06 Nov 2019 15:15:00 -0500
changeset 43463 271af23d01a9
parent 43462 ffd632c224c3
child 43464 3e57809d3251
pvec: fix overlooked chr() call Caught by pytype. Differential Revision: https://phab.mercurial-scm.org/D7261
mercurial/pvec.py
--- 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