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

Method end

Lib/xml/etree/ElementTree.py:1477–1489  ·  view source on GitHub ↗

Close and return current Element. *tag* is the element name.

(self, tag)

Source from the content-addressed store, hash-verified

1475 return elem
1476
1477 def end(self, tag):
1478 """Close and return current Element.
1479
1480 *tag* is the element name.
1481
1482 """
1483 self._flush()
1484 self._last = self._elem.pop()
1485 assert self._last.tag == tag,\
1486 "end tag mismatch (expected %s, got %s)" % (
1487 self._last.tag, tag)
1488 self._tail = 1
1489 return self._last
1490
1491 def comment(self, text):
1492 """Create a comment using the comment_factory.

Callers 5

xmltoolkit63Method · 0.95
test_bug_1534630Method · 0.95
test_element_get_textMethod · 0.95
test_element_get_tailMethod · 0.95
_endMethod · 0.45

Calls 2

_flushMethod · 0.95
popMethod · 0.45

Tested by 4

xmltoolkit63Method · 0.76
test_bug_1534630Method · 0.76
test_element_get_textMethod · 0.76
test_element_get_tailMethod · 0.76