summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-05-22 23:39:10 (GMT)
committerGuido van Rossum <guido@python.org>2001-05-22 23:39:10 (GMT)
commit07f353c5601d7d0100217a5e7d1f0f214c4b7a63 (patch)
treeafb551ec69c5b09b56986c23d82ce959a0d12049 /Lib
parentfe9110b2adb00759af8883c332be8fcd6581ed51 (diff)
downloadcpython-07f353c5601d7d0100217a5e7d1f0f214c4b7a63.zip
cpython-07f353c5601d7d0100217a5e7d1f0f214c4b7a63.tar.gz
cpython-07f353c5601d7d0100217a5e7d1f0f214c4b7a63.tar.bz2
Removed incorrect comment left over from sgmllib.py.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/HTMLParser.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/HTMLParser.py b/Lib/HTMLParser.py
index 363a672..7c04670 100644
--- a/Lib/HTMLParser.py
+++ b/Lib/HTMLParser.py
@@ -75,14 +75,14 @@ class HTMLParseError(Exception):
# 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: