mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
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:
parent
d8a99dbaf7
commit
8146369713
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user