Kaydet (Commit) 07f353c5 authored tarafından Guido van Rossum's avatar Guido van Rossum

Removed incorrect comment left over from sgmllib.py.

üst fe9110b2
...@@ -75,14 +75,14 @@ class HTMLParseError(Exception): ...@@ -75,14 +75,14 @@ class HTMLParseError(Exception):
# HTML parser class -- find tags and call handler functions. # 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().
# The dtd is defined by deriving a class which defines methods
# with special names to handle tags: start_foo and end_foo to handle # Start tags are handled by calling self.handle_starttag() or
# <foo> and </foo>, respectively, or do_foo to handle <foo> by itself. # self.handle_startendtag(); end tags by self.handle_endtag(). The
# (Tags are converted to lower case for this purpose.) The data # data between tags is passed to the parser by calling
# between tags is passed to the parser by calling self.handle_data() # self.handle_data() with some data as argument (the data may be split
# with some data as argument (the data may be split up in arbitrary # up in arbitrary chunks). Entity references are passed by calling
# chunks). Entity references are passed by calling
# self.handle_entityref() with the entity reference as argument. # self.handle_entityref() with the entity reference as argument.
# Etc.
class HTMLParser: class HTMLParser:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment