MCPcopy Index your code
hub / github.com/nodejs/node / escape

Method escape

deps/v8/tools/testrunner/local/command.py:194–199  ·  view source on GitHub ↗
(part)

Source from the content-addressed store, hash-verified

192
193 def to_string(self):
194 def escape(part):
195 # Escape spaces. We may need to escape more characters for this to work
196 # properly.
197 if ' ' in part:
198 return '"%s"' % part
199 return part
200
201 parts = map(escape, self._to_args_list())
202 return ' '.join(parts)

Callers 11

parse_argsFunction · 0.45
__init__Method · 0.45
memcmp_to_whileFunction · 0.45
output_headerMethod · 0.45
format_objectMethod · 0.45
output_comment_boxMethod · 0.45
DeleteBranchMethod · 0.45
_is_failure_outputMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected