summaryrefslogtreecommitdiffstats
path: root/Lib/sgmllib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sgmllib.py')
-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