(self, text)
| 2024 | self._ns_stack.pop() |
| 2025 | |
| 2026 | def comment(self, text): |
| 2027 | if not self._with_comments: |
| 2028 | return |
| 2029 | if self._ignored_depth: |
| 2030 | return |
| 2031 | if self._root_done: |
| 2032 | self._write('\n') |
| 2033 | elif self._root_seen and self._data: |
| 2034 | self._flush() |
| 2035 | self._write(f'<!--{_escape_cdata_c14n(text)}-->') |
| 2036 | if not self._root_seen: |
| 2037 | self._write('\n') |
| 2038 | |
| 2039 | def pi(self, target, data): |
| 2040 | if self._ignored_depth: |
nothing calls this directly
no test coverage detected