Message179939
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
>>> |
|
Date |
User |
Action |
Args |
2013-01-14 13:00:02 | ezio.melotti | set | recipients:
+ ezio.melotti, pysean |
2013-01-14 13:00:02 | ezio.melotti | set | messageid: <1358168402.33.0.076525274527.issue16963@psf.upfronthosting.co.za> |
2013-01-14 13:00:02 | ezio.melotti | link | issue16963 messages |
2013-01-14 13:00:02 | ezio.melotti | create | |
|