]> granicus.if.org Git - python/commitdiff
Put back the call to report_unbalanced() that was lost when
authorGuido van Rossum <guido@python.org>
Tue, 7 Jul 1998 22:46:11 +0000 (22:46 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 7 Jul 1998 22:46:11 +0000 (22:46 +0000)
parse_endtag() was restructured in parse_endtag() and finish_endtag().

Lib/sgmllib.py

index 681760854f96ba7a570d8b3bdf82f1e2fafe53ae..d04204971f2e5c042958d2edf11969da2c2880c3 100644 (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):