This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srittau
Recipients srittau
Date 2017-10-23.08:27:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508747243.44.0.213398074469.issue31844@psf.upfronthosting.co.za>
In-reply-to
Content
HTMLParser derives from _markupbase.ParserBase, which has the following method:

class HTMLParser:

    ...

    def error(self, message):
        raise NotImplementedError(
            "subclasses of ParserBase must override error()")

HTMLParser does not implement this method and the documentation for HTMLParser (https://docs.python.org/3.6/library/html.parser.html) does not mention that its sub-classes need to override it.

I am not sure whether this is a documentation omission, whether HTMLParser should provide an (empty?) implementation, or whether ParserBase should not raise a NotImplementedError (to make linters happy).
History
Date User Action Args
2017-10-23 08:27:23srittausetrecipients: + srittau
2017-10-23 08:27:23srittausetmessageid: <1508747243.44.0.213398074469.issue31844@psf.upfronthosting.co.za>
2017-10-23 08:27:23srittaulinkissue31844 messages
2017-10-23 08:27:22srittaucreate