changeset 31253 | 64596338ba10 |
parent 31234 | 9b7a2ef4f27c |
child 31362 | 50cd81346ad4 |
--- a/mercurial/store.py Thu Mar 02 13:34:01 2017 +0100 +++ b/mercurial/store.py Wed Mar 08 22:30:12 2017 +0900 @@ -99,12 +99,8 @@ 'the\\x07quick\\xadshot' ''' e = '_' - if pycompat.ispy3: - xchr = lambda x: bytes([x]) - asciistr = [bytes([a]) for a in range(127)] - else: - xchr = chr - asciistr = map(chr, xrange(127)) + xchr = pycompat.bytechr + asciistr = list(map(xchr, range(127))) capitals = list(range(ord("A"), ord("Z") + 1)) cmap = dict((x, x) for x in asciistr)