[Python-checkins] CVS: python/dist/src/Lib xmllib.py,1.27,1.28
Sjoerd Mullender
sjoerd@usw-pr-cvs1.sourceforge.net
Wed, 14 Mar 2001 09:03:32 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv6244
Modified Files:
xmllib.py
Log Message:
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.
Index: xmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xmllib.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** xmllib.py 2001/02/09 10:44:32 1.27
--- xmllib.py 2001/03/14 17:03:30 1.28
***************
*** 692,696 ****
self.handle_data(rawdata[i])
return i+1
- self.literal = 0
k = res.end(0)
if endbracket.match(rawdata, k) is None:
--- 692,695 ----
***************
*** 708,711 ****
--- 707,711 ----
# Internal -- finish processing of end tag
def finish_endtag(self, tag):
+ self.literal = 0
if not tag:
self.syntax_error('name-less end tag')