MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / prefixed_lines

Function prefixed_lines

tools/python-3.11.9-amd64/Lib/textwrap.py:482–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480 return line.strip()
481
482 def prefixed_lines():
483 for line in text.splitlines(True):
484 yield (prefix + line if predicate(line) else line)
485 return ''.join(prefixed_lines())
486
487

Callers 1

indentFunction · 0.85

Calls 2

predicateFunction · 0.85
splitlinesMethod · 0.80

Tested by

no test coverage detected