diff mercurial/store.py @ 30922: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 b63bef41a7b6
children f8e06821c118
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))