(tree: ET.ElementTree, path: Path)
| 56 | |
| 57 | |
| 58 | def get_body(tree: ET.ElementTree, path: Path) -> ET.Element: |
| 59 | body = tree.getroot().find("body") |
| 60 | if body is None: |
| 61 | raise OpmlStructureError(f"{path} does not contain <body>") |
| 62 | return body |
| 63 | |
| 64 | |
| 65 | def category_name(node: ET.Element) -> str: |
no test coverage detected