Skip to content

Commit cd3160d

Browse files
committed
gh-95813: Improve HTMLParser from the view of inheritance
1 parent 71c3d64 commit cd3160d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/html/parser.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def __init__(self, *, convert_charrefs=True):
8989
If convert_charrefs is True (the default), all character references
9090
are automatically converted to the corresponding Unicode characters.
9191
"""
92+
super().__init__()
9293
self.convert_charrefs = convert_charrefs
9394
self.reset()
9495

@@ -98,7 +99,7 @@ def reset(self):
9899
self.lasttag = '???'
99100
self.interesting = interesting_normal
100101
self.cdata_elem = None
101-
_markupbase.ParserBase.reset(self)
102+
super().reset()
102103

103104
def feed(self, data):
104105
r"""Feed data to the parser.

0 commit comments

Comments
 (0)