MCPcopy Create free account
hub / github.com/StackStorm/st2 / escape_chars

Function escape_chars

st2common/st2common/util/mongoescape.py:72–78  ·  view source on GitHub ↗
(field)

Source from the content-addressed store, hash-verified

70
71
72def escape_chars(field):
73 if not isinstance(field, dict) and not isinstance(field, list):
74 return field
75
76 value = fast_deepcopy_dict(field)
77
78 return _translate_chars(value, ESCAPE_TRANSLATION)
79
80
81def unescape_chars(field):

Callers

nothing calls this directly

Calls 2

fast_deepcopy_dictFunction · 0.90
_translate_charsFunction · 0.85

Tested by

no test coverage detected