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:
Guido van Rossum 1998-07-07 22:46:11 +00:00
parent d94c2dc5e8
commit b84ef9bc61
1 changed files with 2 additions and 0 deletions

View File

@ -309,6 +309,8 @@ class SGMLParser:
method = getattr(self, 'end_' + tag)
except AttributeError:
self.unknown_endtag(tag)
else:
self.report_unbalanced(tag)
return
found = len(self.stack)
for i in range(found):