MCPcopy Create free account
hub / github.com/kurtmckee/feedparser / parse_declaration

Method parse_declaration

feedparser/html.py:344–355  ·  view source on GitHub ↗

:type i: int :rtype: int

(self, i)

Source from the content-addressed store, hash-verified

342 return ''.join(self.pieces)
343
344 def parse_declaration(self, i):
345 """
346 :type i: int
347 :rtype: int
348 """
349
350 try:
351 return sgmllib.SGMLParser.parse_declaration(self, i)
352 except (AssertionError, sgmllib.SGMLParseError):
353 # Escape the doctype declaration and continue parsing.
354 self.handle_data('<')
355 return i+1

Callers

nothing calls this directly

Calls 1

handle_dataMethod · 0.95

Tested by

no test coverage detected