[Python-checkins] r83455 - in python/branches/release31-maint: Doc/library/html.parser.rst
georg.brandl
python-checkins at python.org
Sun Aug 1 23:09:54 CEST 2010
Author: georg.brandl
Date: Sun Aug 1 23:09:54 2010
New Revision: 83455
Log:
Merged revisions 83223 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r83223 | georg.brandl | 2010-07-29 15:38:37 +0200 (Do, 29 Jul 2010) | 1 line
#3874: document HTMLParser.unknown_decl().
........
Modified:
python/branches/release31-maint/ (props changed)
python/branches/release31-maint/Doc/library/html.parser.rst
Modified: python/branches/release31-maint/Doc/library/html.parser.rst
==============================================================================
--- python/branches/release31-maint/Doc/library/html.parser.rst (original)
+++ python/branches/release31-maint/Doc/library/html.parser.rst Sun Aug 1 23:09:54 2010
@@ -134,10 +134,18 @@
.. method:: HTMLParser.handle_decl(decl)
- Method called when an SGML declaration is read by the parser. The *decl*
- parameter will be the entire contents of the declaration inside the ``<!``...\
- ``>`` markup. It is intended to be overridden by a derived class; the base
- class implementation does nothing.
+ Method called when an SGML ``doctype`` declaration is read by the parser.
+ The *decl* parameter will be the entire contents of the declaration inside
+ the ``<!...>`` markup. It is intended to be overridden by a derived class;
+ the base class implementation does nothing.
+
+
+.. method:: HTMLParser.unknown_decl(data)
+
+ Method called when an unrecognized SGML declaration is read by the parser.
+ The *data* parameter will be the entire contents of the declaration inside
+ the ``<!...>`` markup. It is sometimes useful to be be overridden by a
+ derived class; the base class implementation throws an :exc:`HTMLParseError`.
.. method:: HTMLParser.handle_pi(data)
More information about the Python-checkins
mailing list