Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/raspberrypi/documentation
/ as_list
Function
as_list
scripts/ninja_syntax.py:178–183 ·
view source on GitHub ↗
(input)
Source
from the content-addressed store, hash-verified
176
177
178
def
as_list(input):
179
if
input is None:
180
return
[]
181
if
isinstance(input, list) or isinstance(input, types.GeneratorType):
182
return
input
183
return
[input]
184
185
186
def
escape(string):
Callers
2
build
Method · 0.85
default
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected