Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
94
def
quote(s):
95
s = str(s)
96
return
f
'"{s}"'
if
" "
in s
else
s
97
98
99
def
create_registry_data(root, data):
Callers
15
test_virtualenv_with_env
Method · 0.70
test_py_shebang
Method · 0.70
test_python_shebang
Method · 0.70
test_py2_shebang
Method · 0.70
test_py3_shebang
Method · 0.70
test_py_shebang_nl
Method · 0.70
test_py2_shebang_nl
Method · 0.70
test_py3_shebang_nl
Method · 0.70
test_py_shebang_valid_bom
Method · 0.70
test_py_shebang_invalid_bom
Method · 0.70
test_search_path
Method · 0.70
test_search_path_exe
Method · 0.70
Calls
1
str
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…