changeset 43511:271af23d01a9

pvec: fix overlooked chr() call Caught by pytype. Differential Revision: https://phab.mercurial-scm.org/D7261
author Augie Fackler <augie@google.com>
date Wed, 06 Nov 2019 15:15:00 -0500
parents ffd632c224c3
children 3e57809d3251
files mercurial/pvec.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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