From ab380b7206663c8c040efa461eab923a606408fe Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 23 Jan 2021 10:02:43 -0600 Subject: [PATCH] Remove old and superfluous comments in Stream._run --- tweepy/streaming.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index cae983f..d76b844 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -145,14 +145,11 @@ class Stream: self.proxies["https"] = proxy def _run(self, endpoint, params=None, body=None): - # Authenticate if self.session is None: self.session = requests.Session() url = f"https://stream.twitter.com/{STREAM_VERSION}/{endpoint}.json" - # Connect and process the stream error_counter = 0 - # https://developer.twitter.com/en/docs/twitter-api/v1/tweets/filter-realtime/guides/connecting network_error_wait = network_error_wait_step = 0.25 network_error_wait_max = 16 @@ -164,7 +161,6 @@ class Stream: while self.running: if self.retry_count is not None: if error_counter > self.retry_count: - # quit if error count greater than retry count break try: auth = self.auth.apply_auth() -- 2.25.1