MCPcopy Index your code
hub / github.com/RustPython/RustPython / end

Method end

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

_flushMethod · 0.95
_qnameMethod · 0.95
lenFunction · 0.85
_writeMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected