mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Put back the call to report_unbalanced() that was lost when
parse_endtag() was restructured in parse_endtag() and finish_endtag().
This commit is contained in:
parent
d94c2dc5e8
commit
b84ef9bc61
1 changed files with 2 additions and 0 deletions
|
@ -309,6 +309,8 @@ class SGMLParser:
|
||||||
method = getattr(self, 'end_' + tag)
|
method = getattr(self, 'end_' + tag)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
self.unknown_endtag(tag)
|
self.unknown_endtag(tag)
|
||||||
|
else:
|
||||||
|
self.report_unbalanced(tag)
|
||||||
return
|
return
|
||||||
found = len(self.stack)
|
found = len(self.stack)
|
||||||
for i in range(found):
|
for i in range(found):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue