MCPcopy Index your code
hub / github.com/python/cpython / quote

Function quote

Lib/test/test_launcher.py:94–96  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

92
93
94def quote(s):
95 s = str(s)
96 return f'"{s}"' if " " in s else s
97
98
99def create_registry_data(root, data):

Callers 15

test_py_shebangMethod · 0.70
test_python_shebangMethod · 0.70
test_py2_shebangMethod · 0.70
test_py3_shebangMethod · 0.70
test_py_shebang_nlMethod · 0.70
test_py2_shebang_nlMethod · 0.70
test_py3_shebang_nlMethod · 0.70
test_search_pathMethod · 0.70
test_search_path_exeMethod · 0.70

Calls 1

strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…