]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #793559: Reset __starttext_tag. Fixes #709491.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 20 Sep 2003 10:58:03 +0000 (10:58 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 20 Sep 2003 10:58:03 +0000 (10:58 +0000)
Lib/sgmllib.py
Misc/NEWS

index 833e06f98da006f6c802e88667a31d6ce8f1e79b..987ab9fc15cafad7e748ee6592477213931c517a 100644 (file)
@@ -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
 
index eaa9182ef445e6463437090f3721bf340e17db72..5c0e143c62ffb3c31f24603c64608b90444f0b98 100644 (file)
--- 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.