changeset 30893:a0e3d808690d

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.
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 07 Feb 2017 23:25:37 +0530
parents 441705506d24
children 5b60464efbde
files mercurial/store.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))