[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9896fc2a8167 by Ezio Melotti in branch '3.2': #12888: Fix a bug in HTMLParser.unescape that prevented it to escape more than 128 entities. Patch by Peter Otten. http://hg.python.org/cpython/rev/9896fc2a8167 New

[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report and the patch! -- components: +Library (Lib) -None resolution: - fixed stage: commit review - committed/rejected status: open - closed versions: +Python 3.3 ___

[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-03 Thread Yves Dorfsman
Yves Dorfsman y...@zioup.com added the comment: Added a test case: http://hg.zioup.org/cpython/rev/4accd3181061 If you set the loop 128 then the test passes (set at 1000 right now). -- hgrepos: +65 ___ Python tracker rep...@bugs.python.org

[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-03 Thread Peter Otten
Peter Otten __pete...@web.de added the comment: The unescape() method uses re.sub(regex, sub, re.ASCII), but the third argument is count, not flags. Fix is easy: use re.sub(regex, sub, flags=re.ASCII). -- keywords: +patch nosy: +potten Added file:

[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti nosy: +ezio.melotti stage: - commit review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12888

[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-02 Thread Yves Dorfsman
New submission from Yves Dorfsman y...@zioup.com: html.parser.HTMLParser.unescape works only with the first 128 entities, it leaves the other ones as they are. -- components: None messages: 143434 nosy: y...@zioup.com priority: normal severity: normal status: open title: