From: Aaron Hill Date: Sat, 5 Nov 2016 23:46:09 +0000 (-0400) Subject: Properly encode filter_level X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=09818085c0f8d259fff26b09a71f103ef53dd862;p=tweepy.git Properly encode filter_level Closes #782 --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 3d3fb47..2fdab49 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -446,7 +446,7 @@ class Stream(object): if languages: self.body['language'] = u','.join(map(str, languages)) if filter_level: - self.body['filter_level'] = unicode(filter_level, encoding) + self.body['filter_level'] = filter_level.encode(encoding) self.session.params = {'delimited': 'length'} self.host = 'stream.twitter.com' self._start(async)