##// END OF EJS Templates
encoding: define an enum that specifies what normcase does to ASCII strings...
Siddharth Agarwal -
r24593:f473a1fe default
parent child Browse files
Show More
@@ -354,6 +354,19 def upper(s):
354 354 except LookupError, k:
355 355 raise error.Abort(k, hint="please check your locale settings")
356 356
357 class normcasespecs(object):
358 '''what a platform's normcase does to ASCII strings
359
360 This is specified per platform, and should be consistent with what normcase
361 on that platform actually does.
362
363 lower: normcase lowercases ASCII strings
364 upper: normcase uppercases ASCII strings
365 other: the fallback function should always be called'''
366 lower = -1
367 upper = 1
368 other = 0
369
357 370 _jsonmap = {}
358 371
359 372 def jsonescape(s):
General Comments 0
You need to be logged in to leave comments. Login now