# HG changeset patch # User Augie Fackler # Date 2019-11-06 20:15:00 # Node ID 271af23d01a98ecf87c30c156535fe20be129620 # Parent ffd632c224c3631d28b5db7486074b92a8efdfae pvec: fix overlooked chr() call Caught by pytype. Differential Revision: https://phab.mercurial-scm.org/D7261 diff --git a/mercurial/pvec.py b/mercurial/pvec.py --- a/mercurial/pvec.py +++ b/mercurial/pvec.py @@ -76,7 +76,7 @@ def _bin(bs): 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