From 1ee77974d2f9d04ae13e1bdadebfa6379136dfa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 20 Sep 2003 10:58:03 +0000 Subject: Patch #793559: Reset __starttext_tag. Fixes #709491. --- Lib/sgmllib.py | 2 +- Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 833e06f..987ab9f 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 diff --git a/Misc/NEWS b/Misc/NEWS index eaa9182..5c0e143 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -59,6 +59,8 @@ Extension modules Library ------- +- Bug #709491: Reset __starttext_tag in sgmllib. + - The bsddb module and dbhash module now support the iterator and mapping protocols. -- cgit v0.12