Leonard Richardson <leona...@segfault.org> added the comment:

I'm the maintainer of Beautiful Soup. I learned about this issue when one of my 
users filed a bug for it against Beautiful Soup 
(https://bugs.launchpad.net/beautifulsoup/+bug/1883264).

BeautifulSoupHTMLParser (my subclass of html.parser.HTMLParser) implements 
error() only to prevent the NotImplementedError raised by ParserBase.error(). 
The docstring for my error() implementation says: "this method is called only 
on very strange markup and our best strategy is to pretend it didn't happen and 
keep going."

It shouldn't affect Beautiful Soup if, in a future version of Python, 
HTMLParser.error is never called and ParserBase is removed.

----------
nosy: +leonardr

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34480>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to