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

Method character_data_handler

Lib/xml/dom/expatbuilder.py:291–300  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

289 _append_child(self.curNode, node)
290
291 def character_data_handler(self, data):
292 childNodes = self.curNode.childNodes
293 if childNodes and childNodes[-1].nodeType == TEXT_NODE:
294 node = childNodes[-1]
295 node.data = node.data + data
296 return
297 node = minidom.Text()
298 node.data = node.data + data
299 node.ownerDocument = self.document
300 _append_child(self.curNode, node)
301
302 def entity_decl_handler(self, entityName, is_parameter_entity, value,
303 base, systemId, publicId, notationName):

Callers

nothing calls this directly

Calls 1

_append_childFunction · 0.90

Tested by

no test coverage detected