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

Method startContainer

Lib/xml/dom/expatbuilder.py:462–473  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

460 self.filter = filter
461
462 def startContainer(self, node):
463 mask = self._nodetype_mask[node.nodeType]
464 if self.filter.whatToShow & mask:
465 val = self.filter.startContainer(node)
466 if val == FILTER_INTERRUPT:
467 raise ParseEscape
468 if val not in _ALLOWED_FILTER_RETURNS:
469 raise ValueError(
470 "startContainer() returned illegal value: " + repr(val))
471 return val
472 else:
473 return FILTER_ACCEPT
474
475 def acceptNode(self, node):
476 mask = self._nodetype_mask[node.nodeType]

Callers 1

_finish_start_elementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected