]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Change RuntimeError to SGMLParseError, which subclasses RuntimeError
authorFred Drake <fdrake@acm.org>
Fri, 16 Mar 2001 20:04:57 +0000 (20:04 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 16 Mar 2001 20:04:57 +0000 (20:04 +0000)
commit669573726bb31d8862e98b3843549e5fe0b54d37
tree5969d357eebd6a8f790fb13d54a86d8e9a0a9f0a
parent83e01bf6c84719f8977d1ffd721d75d8eda2ddf8
Change RuntimeError to SGMLParseError, which subclasses RuntimeError
for backward compatibility.

Add support for SGML declaration syntax (<!....>) to some reasonable
degree.  This does not support everything allowed in SGML, but should
work with "real" HTML (internal subset in a DOCTYPE is not handled).
The content of the declaration is passed to the .handle_decl() method,
which can be overridden by subclasses.
Lib/sgmllib.py