(self)
| 21 | whitespace_re = re.compile(r"\s+") |
| 22 | class 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) |
nothing calls this directly
no outgoing calls
no test coverage detected