[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

Matt Giuca report at bugs.python.org
Mon Mar 15 02:54:08 CET 2010


Matt Giuca <matt.giuca at gmail.com> added the comment:

I thought more about it, and wrote a different patch which doesn't remove the dictionary. I just replaced the dictionary creation code -- now it includes keys for all combinations of upper and lower case (for two-letter hex codes). This dictionary isn't much bigger -- 484 entries where is previously had 412.

Therefore, here is a replacement patch (urllib-unquote-mixcase.patch2).

----------
Added file: http://bugs.python.org/file16551/urllib-unquote-mixcase.patch2

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


More information about the Python-bugs-list mailing list