py3: fix the way we produce bytes list in store.py
authorPulkit Goyal <7895pulkit@gmail.com>
Tue, 07 Feb 2017 23:25:37 +0530
changeset 30893 a0e3d808690d
parent 30892 441705506d24
child 30894 5b60464efbde
py3: fix the way we produce bytes list in store.py bytes(range(127)) does not produce a list whereas we need a list. This patch fixes that.
mercurial/store.py
--- a/mercurial/store.py	Tue Feb 07 22:47:24 2017 +0530
+++ b/mercurial/store.py	Tue Feb 07 23:25:37 2017 +0530
@@ -101,7 +101,7 @@
     e = '_'
     if pycompat.ispy3:
         xchr = lambda x: bytes([x])
-        asciistr = bytes(xrange(127))
+        asciistr = [bytes(a) for a in range(127)]
     else:
         xchr = chr
         asciistr = map(chr, xrange(127))