mercurial/encoding.py
changeset 27356 c2effd1ecebf
parent 27355 b479fc425a81
child 27699 c8d3392f76e1
equal deleted inserted replaced
27355:b479fc425a81 27356:c2effd1ecebf
   405     ''
   405     ''
   406     '''
   406     '''
   407 
   407 
   408     if not _jsonmap:
   408     if not _jsonmap:
   409         for x in xrange(32):
   409         for x in xrange(32):
   410             _jsonmap[chr(x)] = "\u%04x" %x
   410             _jsonmap[chr(x)] = "\\u%04x" % x
   411         for x in xrange(32, 256):
   411         for x in xrange(32, 256):
   412             c = chr(x)
   412             c = chr(x)
   413             _jsonmap[c] = c
   413             _jsonmap[c] = c
   414         _jsonmap['\t'] = '\\t'
   414         _jsonmap['\t'] = '\\t'
   415         _jsonmap['\n'] = '\\n'
   415         _jsonmap['\n'] = '\\n'