[issue15156] Refactor HTMLParser.unescape to use html.entities.html5

2012-06-24 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the reviews! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue15156] Refactor HTMLParser.unescape to use html.entities.html5

2012-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d53703b1a99 by Ezio Melotti in branch 'default': #15156: HTMLParser now uses the new "html.entities.html5" dictionary. http://hg.python.org/cpython/rev/0d53703b1a99 -- nosy: +python-dev ___ Python track

[issue15156] Refactor HTMLParser.unescape to use html.entities.html5

2012-06-24 Thread Ezio Melotti
Ezio Melotti added the comment: Patch updated after the review. -- Added file: http://bugs.python.org/file26131/issue15156-2.diff ___ Python tracker ___

[issue15156] Refactor HTMLParser.unescape to use html.entities.html5

2012-06-24 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a patch, please review. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file26129/issue15156.diff ___ Python tracker ___

[issue15156] Refactor HTMLParser.unescape to use html.entities.html5

2012-06-23 Thread Ezio Melotti
New submission from Ezio Melotti : HTMLParser has an internal method called unescape [0] used to convert named character references to the equivalent characters, and it does so by using html.entities.name2codepoint to recreate the equivalent of html.entities.entityrefs with the addition of '.