MCPcopy Index your code
hub / github.com/python/cpython / end

Method end

Lib/xml/etree/ElementTree.py:2014–2024  ·  view source on GitHub ↗
(self, tag)

Source from the content-addressed store, hash-verified

2012 self._ns_stack.append([])
2013
2014 def end(self, tag):
2015 if self._ignored_depth:
2016 self._ignored_depth -= 1
2017 return
2018 if self._data:
2019 self._flush()
2020 self._write(f'</{self._qname(tag)[0]}>')
2021 self._preserve_space.pop()
2022 self._root_done = len(self._preserve_space) == 1
2023 self._declared_ns_stack.pop()
2024 self._ns_stack.pop()
2025
2026 def comment(self, text):
2027 if not self._with_comments:

Callers

nothing calls this directly

Calls 4

_flushMethod · 0.95
_qnameMethod · 0.95
_writeMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected