[Python-checkins] CVS: python/dist/src/Lib HTMLParser.py,1.2,1.3

Fred L. Drake fdrake@users.sourceforge.net
Tue, 22 May 2001 21:53:46 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv13706/Lib

Modified Files:
	HTMLParser.py 
Log Message:

Merge my changes to the offending comment with Guido's changes.


Index: HTMLParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/HTMLParser.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** HTMLParser.py	2001/05/22 23:39:10	1.2
--- HTMLParser.py	2001/05/23 04:53:44	1.3
***************
*** 75,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:
--- 75,91 ----
  
  # 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 from the parser to the derived class by
! # calling self.handle_data() with the 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 the
! # argument.  Numeric character references are passed to
! # self.handle_charref() with the string containing the reference as
! # the argument.
  
  class HTMLParser: