##// END OF EJS Templates
store: give name to lowerencode function...
Yuya Nishihara -
r34210:96808804 default
parent child Browse files
Show More
@@ -162,7 +162,9 b' def _buildlowerencodefun():'
162 cmap[chr(x)] = "~%02x" % x
162 cmap[chr(x)] = "~%02x" % x
163 for x in range(ord("A"), ord("Z") + 1):
163 for x in range(ord("A"), ord("Z") + 1):
164 cmap[chr(x)] = chr(x).lower()
164 cmap[chr(x)] = chr(x).lower()
165 return lambda s: "".join([cmap[c] for c in s])
165 def lowerencode(s):
166 return "".join([cmap[c] for c in s])
167 return lowerencode
166
168
167 lowerencode = getattr(parsers, 'lowerencode', None) or _buildlowerencodefun()
169 lowerencode = getattr(parsers, 'lowerencode', None) or _buildlowerencodefun()
168
170
General Comments 0
You need to be logged in to leave comments. Login now