MCPcopy Index your code
hub / github.com/csev/py4e / comment

Method comment

code3/bs4/builder/_lxml.py:214–218  ·  view source on GitHub ↗

Handle comments as Comment objects.

(self, content)

Source from the content-addressed store, hash-verified

212 self.soup.object_was_parsed(doctype)
213
214 def comment(self, content):
215 "Handle comments as Comment objects."
216 self.soup.endData()
217 self.soup.handle_data(content)
218 self.soup.endData(Comment)
219
220 def test_fragment_to_document(self, fragment):
221 """See `TreeBuilder`."""

Callers

nothing calls this directly

Calls 2

endDataMethod · 0.45
handle_dataMethod · 0.45

Tested by

no test coverage detected