From cbe81f2a722d3f7435e038b66aa4a3bb5a727ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 12 Sep 2003 16:38:00 +0000 Subject: Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632. Backported to 2.3. --- Lib/htmllib.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/htmllib.py') diff --git a/Lib/htmllib.py b/Lib/htmllib.py index 6219bf06aa..40f6a86469 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 -- cgit v1.2.1