diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-09-20 10:58:38 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-09-20 10:58:38 +0000 |
commit | 818fee43a281a36b82c8b20dcc3fee4db58bdb38 (patch) | |
tree | 4116bad52294fc68021ae1abb278047e7e37c640 /Lib/sgmllib.py | |
parent | f909e081ba70e9dd3ac442222ea0497f833c2d89 (diff) | |
download | cpython-818fee43a281a36b82c8b20dcc3fee4db58bdb38.tar.gz |
Patch #793559: Reset __starttext_tag. Fixes #709491. Backported to 2.3.
Diffstat (limited to 'Lib/sgmllib.py')
-rw-r--r-- | Lib/sgmllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |