• Fred Drake's avatar
    Change RuntimeError to SGMLParseError, which subclasses RuntimeError · 66957372
    Fred Drake yazdı
    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.
    66957372
sgmllib.py 17 KB