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

Method _handle_single

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

Source from the content-addressed store, hash-verified

1510 self._pi_factory, self.insert_pis, target, text)
1511
1512 def _handle_single(self, factory, insert, *args):
1513 elem = factory(*args)
1514 if insert:
1515 self._flush()
1516 self._last = elem
1517 if self._elem:
1518 self._elem[-1].append(elem)
1519 self._tail = 1
1520 return elem
1521
1522
1523# 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