Title: Not Implemented Error in stdLib HTMLParser
Type: crash Stage:
Components: Library (Lib) Versions: Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: berker.peksag, ezio.melotti, xtreak, yevgenyp
Priority: normal Keywords:

Created on 2019-10-24 07:29 by yevgenyp, last changed 2019-10-24 07:54 by xtreak.

Messages (2)
msg355287 - (view) Author: Yevgeny Pats (yevgenyp) Date: 2019-10-24 07:29
Not implemented error in built-in HTMLParser

from html.parser import HTMLParser
parser = HTMLParser()

# This will throw (found by
Traceback (most recent call last):
  File "/Users/yevgenyp/fuzzitdev/pythonfuzz/pythonfuzz/", line 21, in worker
  File "examples/htmlparser/", line 12, in fuzz
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/html/", line 111, in feed
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/html/", line 179, in goahead
    k = self.parse_html_declaration(i)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/html/", line 264, in parse_html_declaration
    return self.parse_marked_section(i)
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/", line 159, in parse_marked_section
    self.error('unknown status keyword %r in marked section' % rawdata[i+3:j])
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/", line 34, in error
    "subclasses of ParserBase must override error()")
NotImplementedError: subclasses of ParserBase must override error()
msg355295 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-10-24 07:54
See also and
Date User Action Args
2019-10-24 07:54:30xtreaksetnosy: + ezio.melotti, berker.peksag, xtreak
messages: + msg355295
2019-10-24 07:29:59yevgenypcreate