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

Function get_body

scripts/opml_sync.py:137–141  ·  view source on GitHub ↗
(tree: ET.ElementTree, path: Path)

Source from the content-addressed store, hash-verified

135
136
137def get_body(tree: ET.ElementTree, path: Path) -> ET.Element:
138 body = tree.getroot().find("body")
139 if body is None:
140 raise OpmlStructureError(f"{path} does not contain <body>")
141 return body
142
143
144def strip_namespace(tag: str) -> str:

Callers 3

clean_treeFunction · 0.70
sync_tiny_to_fullFunction · 0.70
run_syncFunction · 0.70

Calls 1

OpmlStructureErrorClass · 0.70

Tested by

no test coverage detected