[Python-checkins] CVS: python/dist/src/Lib HTMLParser.py,1.1,1.2
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 22 May 2001 16:39:13 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv1550
Modified Files:
HTMLParser.py
Log Message:
Removed incorrect comment left over from sgmllib.py.
Index: HTMLParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/HTMLParser.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** HTMLParser.py 2001/05/18 14:50:52 1.1
--- HTMLParser.py 2001/05/22 23:39:10 1.2
***************
*** 76,87 ****
# HTML parser class -- find tags and call handler functions.
# Usage: p = HTMLParser(); p.feed(data); ...; p.close().
! # The dtd is defined by deriving a class which defines methods
! # with special names to handle tags: start_foo and end_foo to handle
! # <foo> and </foo>, respectively, or do_foo to handle <foo> by itself.
! # (Tags are converted to lower case for this purpose.) The data
! # between tags is passed to the parser by calling self.handle_data()
! # with some data as argument (the data may be split up in arbitrary
! # chunks). Entity references are passed by calling
# self.handle_entityref() with the entity reference as argument.
class HTMLParser:
--- 76,87 ----
# HTML parser class -- find tags and call handler functions.
# Usage: p = HTMLParser(); p.feed(data); ...; p.close().
!
! # Start tags are handled by calling self.handle_starttag() or
! # self.handle_startendtag(); end tags by self.handle_endtag(). The
! # data between tags is passed to the parser by calling
! # self.handle_data() with some data as argument (the data may be split
! # up in arbitrary chunks). Entity references are passed by calling
# self.handle_entityref() with the entity reference as argument.
+ # Etc.
class HTMLParser: