discogs/discogs_client — pull request #11 by jesseward (2012-02-21 18:14:34+00:00)
Title: small fix for quote vs quote_plus

The upstream requests library has caused a few issues over the last month. Namely URL escaping of special characters.

This is now fixed. I believe requests lib 10.1 -> 10.3 should be considered "broken"
See
https://github.com/kennethreitz/requests/issues/404
https://github.com/kennethreitz/requests/issues/437

This pull requests includes a very small change to the way the client encodes urls. Substituting quote() for quote_plus() (discogs uses the + for slugs)

See

http://docs.python.org/library/urllib.html#urllib.quote

"Like quote(), but also replaces spaces by plus signs, as required for quoting HTML form values when building up a query string to go into a URL. Plus signs in the original string are escaped unless they are included in safe. It also does not have safe default to '/' "