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.
This commit is contained in:
Pulkit Goyal 2017-02-07 23:25:37 +05:30
parent d8a99dbaf7
commit 8146369713

View File

@ -101,7 +101,7 @@ def _buildencodefun():
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))