Ezio Melotti added the comment:
It works for me on 3.2.3, 3.2.3+, 3.3.0+, 3.4.0a0
>>> from html.parser import HTMLParser
>>> class LooseParser(HTMLParser):
... def __init__(self, strict=False):
... HTMLParser.__init__(self, strict=strict)
... def handle_starttag(self, tag, attrs):
... print('Tag:', tag)
...
>>> p = LooseParser()
>>> p.feed('<p>hello</p>')
Tag: p
>>>
----------
nosy: +ezio.melotti
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16963>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com