MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / escape

Function escape

tools/response_file.py:24–27  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

22 escape_chars += ['\'']
23
24 def escape(arg):
25 for char in escape_chars:
26 arg = arg.replace(char, '\\' + char)
27 return arg
28
29 args = [escape(a) for a in args]
30 contents = ''

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected