[issue2927] expose html.parser.unescape

Tom Pinckney report at bugs.python.org
Tue Nov 9 01:25:47 CET 2010


Tom Pinckney <thomaspinckney3 at gmail.com> added the comment:

New patch attached, tested against Python 3.2. This is my first Python patch so apologies if I've done something wrong here. Feedback appreciated!

Changes:

* fit everything to 80 cols
* just made changes to the HTMLParser.unescape function instead of providing a standalone unescape function
* fixed test case to fix string literals to work in python 3k
* left the cp1252 hacks in there since it looks like they work still, but if there's a problem with them let me know. In practice I have to this at work in order to make unescaping actual web pages work.

----------
Added file: http://bugs.python.org/file19550/unescape.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2927>
_______________________________________


More information about the Python-bugs-list mailing list