Patch #793559: Reset __starttext_tag. Fixes #709491. Backported to 2.3.

This commit is contained in:
Martin v. Löwis 2003-09-20 10:58:38 +00:00
parent cb3062e3c0
commit dc14ab13c4
1 changed files with 1 additions and 1 deletions

View File

@ -61,6 +61,7 @@ class SGMLParser(markupbase.ParserBase):
def reset(self): def reset(self):
"""Reset this instance. Loses all unprocessed data.""" """Reset this instance. Loses all unprocessed data."""
self.__starttag_text = None
self.rawdata = '' self.rawdata = ''
self.stack = [] self.stack = []
self.lasttag = '???' self.lasttag = '???'
@ -221,7 +222,6 @@ class SGMLParser(markupbase.ParserBase):
j = match.end(0) j = match.end(0)
return j-i return j-i
__starttag_text = None
def get_starttag_text(self): def get_starttag_text(self):
return self.__starttag_text return self.__starttag_text