Permalink
Browse files

Merge pull request #93 from leandroferreira/master

corrected issue when searches with "q" gets encoded twice
  • Loading branch information...
2 parents 68534e8 + 92f9c94 commit 9d57f34fce7de10a959d0330395edb60e0377d1c Ryan McGrath committed Jun 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 twython/twython.py
View
@@ -428,7 +428,7 @@ def search(self, **kwargs):
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)

0 comments on commit 9d57f34

Please sign in to comment.