From: Martin v. Löwis Date: Sat, 20 Sep 2003 10:58:38 +0000 (+0000) Subject: Patch #793559: Reset __starttext_tag. Fixes #709491. Backported to 2.3. X-Git-Tag: v2.4a1~1559 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc14ab13c46d94cd69f4df75c5bd231a293cc96c;p=python Patch #793559: Reset __starttext_tag. Fixes #709491. Backported to 2.3. --- diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 833e06f98d..987ab9fc15 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -61,6 +61,7 @@ class SGMLParser(markupbase.ParserBase): def reset(self): """Reset this instance. Loses all unprocessed data.""" + self.__starttag_text = None self.rawdata = '' self.stack = [] self.lasttag = '???' @@ -221,7 +222,6 @@ class SGMLParser(markupbase.ParserBase): j = match.end(0) return j-i - __starttag_text = None def get_starttag_text(self): return self.__starttag_text