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

Method _handle_single

Lib/xml/etree/ElementTree.py:1508–1516  ·  view source on GitHub ↗
(self, factory, insert, *args)

Source from the content-addressed store, hash-verified

1506 self._pi_factory, self.insert_pis, target, text)
1507
1508 def _handle_single(self, factory, insert, *args):
1509 elem = factory(*args)
1510 if insert:
1511 self._flush()
1512 self._last = elem
1513 if self._elem:
1514 self._elem[-1].append(elem)
1515 self._tail = 1
1516 return elem
1517
1518
1519# also see ElementTree and TreeBuilder

Callers 2

commentMethod · 0.95
piMethod · 0.95

Calls 3

_flushMethod · 0.95
factoryFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected