]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 12 Sep 2003 16:37:45 +0000 (16:37 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 12 Sep 2003 16:37:45 +0000 (16:37 +0000)
Lib/htmllib.py
Misc/NEWS

index 6219bf06aa01d9105662b388f3f5aeef98120c39..40f6a86469ac6f4ec14b972e10318c3fdac26072 100644 (file)
@@ -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
index b6c5aee21ee4021ccc2c070fe3a20f47da76bed4..ce1fb7e0d5da0d2d50ae71b97d8bb17b25a0095c 100644 (file)
--- 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