Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc14ab1

Browse files
committed
Patch #793559: Reset __starttext_tag. Fixes #709491. Backported to 2.3.
1 parent cb3062e commit dc14ab1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/sgmllib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def __init__(self, verbose=0):
6161

6262
def reset(self):
6363
"""Reset this instance. Loses all unprocessed data."""
64+
self.__starttag_text = None
6465
self.rawdata = ''
6566
self.stack = []
6667
self.lasttag = '???'
@@ -221,7 +222,6 @@ def parse_pi(self, i):
221222
j = match.end(0)
222223
return j-i
223224

224-
__starttag_text = None
225225
def get_starttag_text(self):
226226
return self.__starttag_text
227227

0 commit comments

Comments
 (0)