diff options
-rw-r--r-- | Lib/xmllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmllib.py b/Lib/xmllib.py index 23f9cdc..e8210e6 100644 --- a/Lib/xmllib.py +++ b/Lib/xmllib.py @@ -691,7 +691,6 @@ class XMLParser: if not self.stack or tag != self.stack[-1][0]: self.handle_data(rawdata[i]) return i+1 - self.literal = 0 k = res.end(0) if endbracket.match(rawdata, k) is None: self.syntax_error('garbage in end tag') @@ -707,6 +706,7 @@ class XMLParser: # Internal -- finish processing of end tag def finish_endtag(self, tag): + self.literal = 0 if not tag: self.syntax_error('name-less end tag') found = len(self.stack) - 1 |