]> granicus.if.org Git - python/commit
Re-factor the SGMLParser class to use the new markupbase.ParserBase class.
authorFred Drake <fdrake@acm.org>
Mon, 24 Sep 2001 20:15:51 +0000 (20:15 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 24 Sep 2001 20:15:51 +0000 (20:15 +0000)
commita3bae3369cca83ee485ed3293e2ad4c53691ba1a
treee6fbd7fcc8376e81eb8752ecab218ef498843771
parentbfc8fea1e0c46bc0a337237c32b8c1a32985c144
Re-factor the SGMLParser class to use the new markupbase.ParserBase class.
Use a new internal method, error(), consistently to raise parse errors;
the new base class also uses this.
Adjust the parse_comment() method to return the new offset into the buffer
instead of the number of characters scanned; this was the only helper
method that did it this way, so we have better consistency now.  Required
to share the new base class.
This fixes SF bug #448482 and #453706.
Lib/sgmllib.py