MCPcopy Create free account
hub / github.com/apache/fory / ident_lines

Function ident_lines

python/pyfory/codegen.py:217–222  ·  view source on GitHub ↗
(lines: Union[List[str], str])

Source from the content-addressed store, hash-verified

215
216
217def ident_lines(lines: Union[List[str], str]):
218 is_str = type(lines) is str
219 if is_str:
220 lines = lines.split("\n")
221 lines = [ident(line) for line in lines]
222 return lines if not is_str else "\n".join(lines)
223
224
225def ident(line: str):

Callers

nothing calls this directly

Calls 1

identFunction · 0.85

Tested by

no test coverage detected