MCPcopy Index your code
hub / github.com/RustPython/RustPython / parse

Method parse

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

Source from the content-addressed store, hash-verified

274 comment before the root element, because S2D can"t handle it"""
275
276 def parse(self, _):
277 h = self._handler
278 h.startDocument()
279 h.startElement("html", AttributesImpl({}))
280 h.comment("a comment")
281 h.processingInstruction("target", "data")
282 h.startElement("p", AttributesImpl({"class": "paraclass"}))
283 h.characters("text")
284 h.endElement("p")
285 h.endElement("html")
286 h.endDocument()
287
288
289class 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