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

Method notation_decl_handler

Lib/xml/dom/expatbuilder.py:320–324  ·  view source on GitHub ↗
(self, notationName, base, systemId, publicId)

Source from the content-addressed store, hash-verified

318 del self.document.doctype.entities._seq[-1]
319
320 def notation_decl_handler(self, notationName, base, systemId, publicId):
321 node = self.document._create_notation(notationName, publicId, systemId)
322 self.document.doctype.notations._seq.append(node)
323 if self._filter and self._filter.acceptNode(node) == FILTER_ACCEPT:
324 del self.document.doctype.notations._seq[-1]
325
326 def comment_handler(self, data):
327 node = self.document.createComment(data)

Callers

nothing calls this directly

Calls 3

_create_notationMethod · 0.80
appendMethod · 0.45
acceptNodeMethod · 0.45

Tested by

no test coverage detected