From bbc79462325c64ffa754cd050e025d52ff0a80cf Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 23 Jan 2021 07:42:59 -0600 Subject: [PATCH] Replace Stream proxies parameter with proxy Resolves #1272 --- tweepy/streaming.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 4342673..1ede502 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -148,8 +148,10 @@ class Stream: self.retry_time = self.retry_time_start self.snooze_time = self.snooze_time_step - # Example: proxies = {'http': 'http://localhost:1080', 'https': 'http://localhost:1080'} - self.proxies = options.get("proxies") + self.proxies = {} + proxy = options.get("proxy") + if proxy: + self.proxies["https"] = proxy def _run(self, params=None, body=None): # Authenticate -- 2.25.1