diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-09-12 16:38:00 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-09-12 16:38:00 (GMT) |
commit | cbe81f2a722d3f7435e038b66aa4a3bb5a727ef4 (patch) | |
tree | b38fed582ca3cfaaa702b6a2f0991f28e93ff455 | |
parent | 1b699a5f00b427d95772349726d1ce1ab92718a7 (diff) | |
download | cpython-cbe81f2a722d3f7435e038b66aa4a3bb5a727ef4.zip cpython-cbe81f2a722d3f7435e038b66aa4a3bb5a727ef4.tar.gz cpython-cbe81f2a722d3f7435e038b66aa4a3bb5a727ef4.tar.bz2 |
Patch #793021: Implement htmllib.HTMLParser.reset. Fixes #711632.
Backported to 2.3.
-rw-r--r-- | Lib/htmllib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/htmllib.py b/Lib/htmllib.py index 6219bf0..40f6a86 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 |