Patchwork D7261: pvec: fix overlooked chr() call

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:31 a.m.
Message ID <fbaddcb09971c72f6d63876b43381e1b@localhost.localdomain>
Download mbox | patch
Permalink /patch/42858/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:31 a.m.
Closed by commit rHG271af23d01a9: pvec: fix overlooked chr() call (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7261?vs=17631&id=17678

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7261/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7261

AFFECTED FILES
  mercurial/pvec.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/pvec.py b/mercurial/pvec.py
--- a/mercurial/pvec.py
+++ b/mercurial/pvec.py
@@ -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