##// END OF EJS Templates
py3: iterate bytes as a byte string in store.lowerencode()
Yuya Nishihara -
r34212:b4abc438 default
parent child Browse files
Show More
@@ -164,7 +164,7 b' def _buildlowerencodefun():'
164 164 for x in range(ord("A"), ord("Z") + 1):
165 165 cmap[xchr(x)] = xchr(x).lower()
166 166 def lowerencode(s):
167 return "".join([cmap[c] for c in s])
167 return "".join([cmap[c] for c in pycompat.iterbytestr(s)])
168 168 return lowerencode
169 169
170 170 lowerencode = getattr(parsers, 'lowerencode', None) or _buildlowerencodefun()
@@ -63,7 +63,7 b" testmod('mercurial.parser')"
63 63 testmod('mercurial.pycompat')
64 64 testmod('mercurial.revsetlang')
65 65 testmod('mercurial.smartset')
66 testmod('mercurial.store', py3=False) # py3: bytes[n]
66 testmod('mercurial.store')
67 67 testmod('mercurial.subrepo')
68 68 testmod('mercurial.templatefilters')
69 69 testmod('mercurial.templater')
General Comments 0
You need to be logged in to leave comments. Login now