[issue14251] [PATCH]HTMLParser decode issue

2012-03-10 Thread Ezio Melotti
Ezio Melotti added the comment: See also #3932. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue14251] [PATCH]HTMLParser decode issue

2012-03-10 Thread Ezio Melotti
Ezio Melotti added the comment: Can you provide a minimal example to reproduce this error? On Python 2 it's always better to decode the HTML first and then pass unicode to the parser. Even though on Python 2 the parser accepts bytes string too, there are a few corner cases where it fails. O

[issue14251] [PATCH]HTMLParser decode issue

2012-03-10 Thread rednaks
New submission from rednaks : Hello ! while parsing a HTML code i got an decode Error : but this issue can be fixed by replacing the last string by s.decode() like in the diff file. I also tried to execute my script under python3.2 and it does not parsing any thing File "/usr/lib/python2.7