Message304782
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). |
|
Date |
User |
Action |
Args |
2017-10-23 08:27:23 | srittau | set | recipients:
+ srittau |
2017-10-23 08:27:23 | srittau | set | messageid: <1508747243.44.0.213398074469.issue31844@psf.upfronthosting.co.za> |
2017-10-23 08:27:23 | srittau | link | issue31844 messages |
2017-10-23 08:27:22 | srittau | create | |
|