Mercurial > hg-stable
comparison mercurial/store.py @ 30076:400dfded8a29
py3: make the string unicode so its iterable in py3k
author | Mateusz Kwapich <mitrandir@fb.com> |
---|---|
date | Sat, 08 Oct 2016 08:45:28 -0700 |
parents | 81c38cb9c1a1 |
children | 8f42d8c412c8 |
comparison
equal
deleted
inserted
replaced
30075:2c8ec8c2ddfe | 30076:400dfded8a29 |
---|---|
63 * ascii hi (126..255) | 63 * ascii hi (126..255) |
64 * windows specials | 64 * windows specials |
65 | 65 |
66 these characters will be escaped by encodefunctions | 66 these characters will be escaped by encodefunctions |
67 ''' | 67 ''' |
68 winreserved = [ord(x) for x in '\\:*?"<>|'] | 68 winreserved = [ord(x) for x in u'\\:*?"<>|'] |
69 for x in range(32): | 69 for x in range(32): |
70 yield x | 70 yield x |
71 for x in range(126, 256): | 71 for x in range(126, 256): |
72 yield x | 72 yield x |
73 for x in winreserved: | 73 for x in winreserved: |