Mercurial > hg
comparison mercurial/pvec.py @ 43463: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 | 4aa72cdf616f |
children | 90aac60b6697 |
comparison
equal
deleted
inserted
replaced
43462:ffd632c224c3 | 43463:271af23d01a9 |
---|---|
74 | 74 |
75 | 75 |
76 def _str(v, l): | 76 def _str(v, l): |
77 bs = b"" | 77 bs = b"" |
78 for p in pycompat.xrange(l): | 78 for p in pycompat.xrange(l): |
79 bs = chr(v & 255) + bs | 79 bs = pycompat.bytechr(v & 255) + bs |
80 v >>= 8 | 80 v >>= 8 |
81 return bs | 81 return bs |
82 | 82 |
83 | 83 |
84 def _split(b): | 84 def _split(b): |