ryanmcgrath/twython — pull request #83 by Voulnet (2012-04-14 02:34:29+00:00)
Title: I fixed line 479 to properly URL encode the querystring (q parameter) fo...

...r the search functionality. According to http://dev.twitter.com/doc/get/search, the q parameter should be URL encoded, but Twython.unicode2utf8 doesn't urlencode the query.

So I enclosed it in a urllib.quote_plus function call.

examples:

>>> urllib.quote_plus(Twython.unicode2utf8('h ^&$'))
'h+%5E%26%24'
>>> Twython.unicode2utf8('h ^&$')
'h ^&$'
>>>