From cf9dcc242b6ac4546e3b87b773546891401c2f0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 12 Sep 2003 16:37:45 +0000 Subject: [PATCH] Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632. --- Lib/htmllib.py | 3 +++ Misc/NEWS | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Lib/htmllib.py b/Lib/htmllib.py index 6219bf06aa01..40f6a86469ac 100644 --- a/Lib/htmllib.py +++ b/Lib/htmllib.py @@ -30,6 +30,9 @@ class HTMLParser(SGMLParser): """ SGMLParser.__init__(self, verbose) self.formatter = formatter + + def reset(self): + SGMLParser.reset(self) self.savedata = None self.isindex = 0 self.title = None diff --git a/Misc/NEWS b/Misc/NEWS index b6c5aee21ee4..ce1fb7e0d5da 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -47,6 +47,8 @@ Extension modules Library ------- +- Bug #711632: Reset all state members in HTMLParser.reset. + - Bug #792649: logging.ConfigStreamHandler had an uninitialized variable - The csv module's DictReader and DictWriter classes now accept keyword -- 2.47.3