MCPcopy
hub / github.com/pyload/pyload / replace

Function replace

module/lib/simplejson/encoder.py:42–43  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

40 if isinstance(s, str) and HAS_UTF8.search(s) is not None:
41 s = s.decode('utf-8')
42 def replace(match):
43 return ESCAPE_DCT[match.group(0)]
44 return u'"' + ESCAPE.sub(replace, s) + u'"'
45
46

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected