Fixed character encoding.
authorjohn <john@m.urray.com>
Sat, 6 Jun 2015 21:35:30 +0000 (14:35 -0700)
committerjohn <john@m.urray.com>
Sat, 6 Jun 2015 21:35:30 +0000 (14:35 -0700)
tweepy/streaming.py

index 0d7f74298579c7a0c43faeb270699078e31924a6..d0b2feb318e02d99331396e4e2c8ffe960334cda 100644 (file)
@@ -424,7 +424,7 @@ class Stream(object):
         if languages:
             self.body['language'] = u','.join(map(str, languages))
         if filter_level:
-            self.body['filter_level'] = filter_level
+            self.body['filter_level'] = unicode(filter_level, encoding)
         self.session.params = {'delimited': 'length'}
         self.host = 'stream.twitter.com'
         self._start(async)