From 431dd761dc03285da91d36820684c0242ab55e2a Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 21 Feb 2014 23:12:11 -0500 Subject: [PATCH] Encode stream parameters --- tweepy/streaming.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index dc93d58..c1ab0bc 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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, " -- 2.25.1