From 28725bc33a8c62a02f7334c5e89359b4dc646600 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 21 Feb 2021 15:43:45 -0600 Subject: [PATCH] Use map for string casts in Stream.filter --- tweepy/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index c98fab9..eed6339 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -432,10 +432,10 @@ class Stream(object): self.url = '/%s/statuses/filter.json' % STREAM_VERSION if follow: - self.body['follow'] = u','.join(str(f) for f in follow).encode(encoding) + self.body['follow'] = u','.join(map(str, follow)).encode(encoding) if track: - self.body['track'] = u','.join(str(f) for f in track).encode(encoding) + self.body['track'] = u','.join(map(str, track)).encode(encoding) if locations and len(locations) > 0: if len(locations) % 4 != 0: -- 2.25.1