Fix decoding of invalid %encodings in URLs #535

Merged
merged 3 commits into from Apr 11, 2012
Commits on Apr 11, 2012
  1. Rewrite unquote_unreserved based on urllib.unquote

    Jonty committed Apr 4, 2012
    This is almost entirely taken from the unquote implementation in urllib,
    slightly modified for the case in hand. It now deals with invalid %encodings
    rather than exploding, and the code is somewhat simpler.