MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / rebuild_body

Function rebuild_body

scripts/prepare-release.py:139–145  ·  view source on GitHub ↗
(leading: list[str], subs: list[dict])

Source from the content-addressed store, hash-verified

137
138
139def rebuild_body(leading: list[str], subs: list[dict]) -> list[str]:
140 parts: list[str] = []
141 if leading:
142 parts.append("\n".join(leading))
143 for s in subs:
144 parts.append("\n".join([s["header_line"], *s["body"]]))
145 return "\n".join(parts).split("\n")
146
147
148def block_has_content(body: list[str]) -> bool:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected