Merge pull request #93 from leandroferreira/master

corrected issue when searches with "q" gets encoded twice
This commit is contained in:
Ryan McGrath 2012-06-24 12:15:10 -07:00
commit 9d57f34fce

View file

@ -428,7 +428,7 @@ class Twython(object):
e.g x.search(q='jjndf', page='2')
"""
if 'q' in kwargs:
kwargs['q'] = urllib.quote_plus(Twython.unicode2utf8(kwargs['q']))
kwargs['q'] = urllib.quote_plus(Twython.unicode2utf8(kwargs['q'], ':'))
return self.get('https://search.twitter.com/search.json', params=kwargs)