(tree: ET.ElementTree, path: Path)
| 135 | |
| 136 | |
| 137 | def 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 | |
| 144 | def strip_namespace(tag: str) -> str: |
no test coverage detected