summaryrefslogtreecommitdiffstats
path: root/Lib/getopt.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-03-16 20:04:57 (GMT)
committerFred Drake <fdrake@acm.org>2001-03-16 20:04:57 (GMT)
commit669573726bb31d8862e98b3843549e5fe0b54d37 (patch)
tree5969d357eebd6a8f790fb13d54a86d8e9a0a9f0a /Lib/getopt.py
parent83e01bf6c84719f8977d1ffd721d75d8eda2ddf8 (diff)
downloadcpython-669573726bb31d8862e98b3843549e5fe0b54d37.zip
cpython-669573726bb31d8862e98b3843549e5fe0b54d37.tar.gz
cpython-669573726bb31d8862e98b3843549e5fe0b54d37.tar.bz2
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 'Lib/getopt.py')
0 files changed, 0 insertions, 0 deletions