From: Harmon Date: Sat, 23 Jan 2021 13:42:59 +0000 (-0600) Subject: Replace Stream proxies parameter with proxy X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bbc79462325c64ffa754cd050e025d52ff0a80cf;p=tweepy.git Replace Stream proxies parameter with proxy Resolves #1272 --- 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