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

Method parse

Lib/test/test_pulldom.py:273–283  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

271 comment before the root element, because S2D can"t handle it"""
272
273 def parse(self, _):
274 h = self._handler
275 h.startDocument()
276 h.startElement("html", AttributesImpl({}))
277 h.comment("a comment")
278 h.processingInstruction("target", "data")
279 h.startElement("p", AttributesImpl({"class": "paraclass"}))
280 h.characters("text")
281 h.endElement("p")
282 h.endElement("html")
283 h.endDocument()
284
285
286class SAX2DOMTestHelper(pulldom.DOMEventStream):

Callers

nothing calls this directly

Calls 8

AttributesImplClass · 0.90
startDocumentMethod · 0.45
startElementMethod · 0.45
commentMethod · 0.45
processingInstructionMethod · 0.45
charactersMethod · 0.45
endElementMethod · 0.45
endDocumentMethod · 0.45

Tested by

no test coverage detected