summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-09-20 10:58:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-09-20 10:58:38 (GMT)
commitdc14ab13c46d94cd69f4df75c5bd231a293cc96c (patch)
tree914fd8d724331fb15323941094af9284a5462792
parentcb3062e3c0cf3196fed51af5181c95bd64fd03dc (diff)
downloadcpython-dc14ab13c46d94cd69f4df75c5bd231a293cc96c.zip
cpython-dc14ab13c46d94cd69f4df75c5bd231a293cc96c.tar.gz
cpython-dc14ab13c46d94cd69f4df75c5bd231a293cc96c.tar.bz2
Patch #793559: Reset __starttext_tag. Fixes #709491. Backported to 2.3.
-rw-r--r--Lib/sgmllib.py2
1 files changed, 1 insertions, 1 deletions
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