MCPcopy Create free account
hub / github.com/clips/pattern / handle_decl

Method handle_decl

pattern/web/soup/BeautifulSoup.py:1446–1448  ·  view source on GitHub ↗

Handle DOCTYPEs and the like as Declaration objects.

(self, data)

Source from the content-addressed store, hash-verified

1444 self.handle_data(data)
1445
1446 def handle_decl(self, data):
1447 "Handle DOCTYPEs and the like as Declaration objects."
1448 self._toStringSubclass(data, Declaration)
1449
1450 def parse_declaration(self, i):
1451 """Treat a bogus SGML declaration as raw data. Treat a CDATA

Callers

nothing calls this directly

Calls 1

_toStringSubclassMethod · 0.95

Tested by

no test coverage detected