MCPcopy Create free account
hub / github.com/cdgriffith/Box / _token_lines

Function _token_lines

box/comments.py:42–48  ·  view source on GitHub ↗

Comment token text to comment lines without the "#", blank lines kept as "".

(value: str)

Source from the content-addressed store, hash-verified

40
41
42def _token_lines(value: str) -> list[str]:
43 """Comment token text to comment lines without the "#", blank lines kept as ""."""
44 out = []
45 for line in _LINE_BREAKS.split(value):
46 line = line.strip()
47 out.append(line[1:].lstrip() if line.startswith("#") else line)
48 return out
49
50
51def _text_to_lines(text: str) -> list[str]:

Callers 3

take_linesFunction · 0.85
handleFunction · 0.85
extract_commentsFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected