MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / serialize_paths

Function serialize_paths

tools/ninja_syntax.py:220–225  ·  view source on GitHub ↗
(input: Optional[NinjaPathOrPaths])

Source from the content-addressed store, hash-verified

218
219
220def serialize_paths(input: Optional[NinjaPathOrPaths]) -> List[str]:
221 if isinstance(input, str) or isinstance(input, Path):
222 return [serialize_path(input)] if input else []
223 elif input is not None:
224 return [serialize_path(path) for path in input if path]
225 return []
226
227
228def escape(string: str) -> str:

Callers 3

variableMethod · 0.85
buildMethod · 0.85
defaultMethod · 0.85

Calls 1

serialize_pathFunction · 0.85

Tested by

no test coverage detected