kennethreitz/requests — pull request #535 by Jonty (2012-04-04 10:16:58+00:00)
Title: Fix decoding of invalid %encodings in URLs

Currently a URL with invalid %encodings will cause an exception to be thrown in unquote_unreserved.

This patch reimplements unquote_unreserved to be almost identical to urllib.unquote, thus fixing the problem and simplifying the code.