Encode stream parameters
authorAaron Hill <aa1ronham@gmail.com>
Sat, 22 Feb 2014 04:12:11 +0000 (23:12 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 27 Apr 2014 02:03:11 +0000 (22:03 -0400)
tweepy/streaming.py

index dc93d585d282adf8141814bf3a5c15c77a754102..c1ab0bc91e2b3d55e95336df1ee202aee23bfbdf 100644 (file)
@@ -299,9 +299,10 @@ class Stream(object):
         self.url = '/%s/statuses/filter.json' % STREAM_VERSION
         if follow:
             encoded_follow = [s.encode(encoding) for s in follow]
-            self.session.params['follow'] = ','.join(map(str, follow))
+            self.session.params['follow'] = ','.join(encoded_follow)
         if track:
-            self.session.params['track'] = ','.join(map(str, track))
+            encoded_track = [s.encode(encoding) for s in track]
+            self.session.params['track'] = ','.join(encoded_track)
         if locations and len(locations) > 0:
             if len(locations) % 4 != 0:
                 raise TweepError("Wrong number of locations points, "