MCPcopy
hub / github.com/zer0yu/CyberSecurityRSS / serialize_tree

Function serialize_tree

scripts/add_feed_to_tiny.py:402–404  ·  view source on GitHub ↗
(tree: ET.ElementTree)

Source from the content-addressed store, hash-verified

400
401
402def serialize_tree(tree: ET.ElementTree) -> bytes:
403 payload = ET.tostring(tree.getroot(), encoding="utf-8", short_empty_elements=True)
404 return XML_DECLARATION + payload + b"\n"
405
406
407def resolve_category_choice(raw_choice: str, categories: List[str]) -> Optional[str]:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected