[Python-checkins] python/dist/src/Lib HTMLParser.py,1.10,1.11
fdrake@sourceforge.net
fdrake@sourceforge.net
Tue, 14 May 2002 08:50:13 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv25394/Lib
Modified Files:
HTMLParser.py
Log Message:
Simplify code to remove an unnecessary test.
Index: HTMLParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/HTMLParser.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** HTMLParser.py 3 Dec 2001 17:09:50 -0000 1.10
--- HTMLParser.py 14 May 2002 15:50:11 -0000 1.11
***************
*** 149,154 ****
elif startswith("</", i):
k = self.parse_endtag(i)
- if k >= 0:
- self.clear_cdata_mode()
elif startswith("<!--", i):
k = self.parse_comment(i)
--- 149,152 ----
***************
*** 330,333 ****
--- 328,332 ----
tag = match.group(1)
self.handle_endtag(tag.lower())
+ self.clear_cdata_mode()
return j