From: Martin v. Löwis Date: Fri, 12 Sep 2003 16:37:45 +0000 (+0000) Subject: Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632. X-Git-Tag: v2.3.1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf9dcc242b6ac4546e3b87b773546891401c2f0b;p=thirdparty%2FPython%2Fcpython.git Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632. --- 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