MCPcopy Index your code
hub / github.com/zer0yu/CyberSecurityRSS / serialize_tree

Function serialize_tree

scripts/opml_sync.py:516–519  ·  view source on GitHub ↗
(tree: ET.ElementTree)

Source from the content-addressed store, hash-verified

514
515
516def serialize_tree(tree: ET.ElementTree) -> bytes:
517 root = tree.getroot()
518 payload = ET.tostring(root, encoding="utf-8", short_empty_elements=True)
519 return XML_DECLARATION + payload + b"\n"
520
521
522def serialize_state(state_payload: Dict[str, Any]) -> bytes:

Callers 1

run_syncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected