Mercurial > cpython-lru_cache-weakref
diff Lib/HTMLParser.py @ 17932:ce7f0e380830 legacy-trunk
Removed incorrect comment left over from sgmllib.py.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 22 May 2001 23:39:10 +0000 |
| parents | 055fc046e080 |
| children | e14b41fd2ab2 |
line wrap: on
line diff
--- a/Lib/HTMLParser.py Tue May 22 22:37:05 2001 +0000 +++ b/Lib/HTMLParser.py Tue May 22 23:39:10 2001 +0000 @@ -75,14 +75,14 @@ # 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 + +# 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:
