MCPcopy
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
178def 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
186def escape(string):

Callers 2

buildMethod · 0.85
defaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected