Commits

Anonymous committed 9776cf5

- xmllib.py - Moved clearing of "literal" flag. The flag is set in setliteral
which can be called from a start tag handler. When the corresponding end
tag is read the flag is cleared. However, it didn't get cleared when
the start tag was for an empty element of the type <tag .../>. This
modification fixes the problem.

Comments (0)

Files changed (2)

                 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')
 
     # 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
 
 - #12195 - webbrowser.py - there was typo in Mac code
 
+- quopri.py - treat \r as whitespace too
+
+- xmllib.py - Moved clearing of "literal" flag.  The flag is set in setliteral 
+  which can be called from a start tag handler.  When the corresponding end
+  tag is read the flag is cleared.  However, it didn't get cleared when
+  the start tag was for an empty element of the type <tag .../>.  This
+  modification fixes the problem.
+
 What's New in Python 2.0?
 =========================