diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-16 20:04:57 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-16 20:04:57 +0000 |
commit | 669573726bb31d8862e98b3843549e5fe0b54d37 (patch) | |
tree | 5969d357eebd6a8f790fb13d54a86d8e9a0a9f0a /Python/compile.c | |
parent | 83e01bf6c84719f8977d1ffd721d75d8eda2ddf8 (diff) | |
download | cpython-git-669573726bb31d8862e98b3843549e5fe0b54d37.tar.gz |
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.
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions