Mercurial > cpython-lru_cache-weakref
diff Lib/HTMLParser.py @ 17934:e14b41fd2ab2 legacy-trunk
Merge my changes to the offending comment with Guido's changes.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 23 May 2001 04:53:44 +0000 |
| parents | ce7f0e380830 |
| children | 00935031b373 |
line wrap: on
line diff
--- a/Lib/HTMLParser.py Wed May 23 01:45:19 2001 +0000 +++ b/Lib/HTMLParser.py Wed May 23 04:53:44 2001 +0000 @@ -74,15 +74,19 @@ # HTML parser class -- find tags and call handler functions. -# Usage: p = HTMLParser(); p.feed(data); ...; p.close(). +# 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. +# 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:
