MCPcopy Create free account
hub / github.com/commonmark/cmark / __init__

Method __init__

test/normalize.py:23–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21whitespace_re = re.compile(r"\s+")
22class MyHTMLParser(HTMLParser):
23 def __init__(self):
24 HTMLParser.__init__(self)
25 self.convert_charrefs = False
26 self.last = "starttag"
27 self.in_pre = False
28 self.output = ""
29 self.last_tag = ""
30 def handle_data(self, data):
31 after_tag = self.last == "endtag" or self.last == "starttag"
32 after_block_tag = after_tag and self.is_block_tag(self.last_tag)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected