Return a ElementTree element from the given match and the start and end index of the matched text. If `start` and/or `end` are returned as `None`, it will be assumed that the processor did not find a valid region of text. Subclasses should override this method.
(self, m: re.Match[str], data: str)
| 278 | self.md = md |
| 279 | |
| 280 | def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element | str | None, int | None, int | None]: |
| 281 | """Return a ElementTree element from the given match and the |
| 282 | start and end index of the matched text. |
| 283 | |
| 284 | If `start` and/or `end` are returned as `None`, it will be |
| 285 | assumed that the processor did not find a valid region of text. |
| 286 | |
| 287 | Subclasses should override this method. |
| 288 | |
| 289 | Arguments: |
| 290 | m: A re match object containing a match of the pattern. |
| 291 | data: The buffer currently under analysis. |
| 292 | |
| 293 | Returns: |
| 294 | el: The ElementTree element, text or None. |
| 295 | start: The start of the region that has been matched or None. |
| 296 | end: The end of the region that has been matched or None. |
| 297 | |
| 298 | """ |
| 299 | pass # pragma: no cover |
| 300 | |
| 301 | |
| 302 | class SimpleTextPattern(Pattern): # pragma: no cover |
nothing calls this directly
no outgoing calls
no test coverage detected