MCPcopy Index your code
hub / github.com/clips/pattern / parse_declaration

Method parse_declaration

pattern/web/feed/feedparser.py:2052–2058  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

2050 return ''.join([str(p) for p in self.pieces])
2051
2052 def parse_declaration(self, i):
2053 try:
2054 return sgmllib.SGMLParser.parse_declaration(self, i)
2055 except sgmllib.SGMLParseError:
2056 # escape the doctype declaration and continue parsing
2057 self.handle_data('<')
2058 return i+1
2059
2060class _LooseFeedParser(_FeedParserMixin, _BaseHTMLProcessor):
2061 def __init__(self, baseuri, baselang, encoding, entities):

Callers

nothing calls this directly

Calls 2

handle_dataMethod · 0.95
parse_declarationMethod · 0.45

Tested by

no test coverage detected