From: Harmon Date: Sat, 23 Jan 2021 16:02:43 +0000 (-0600) Subject: Remove old and superfluous comments in Stream._run X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ab380b7206663c8c040efa461eab923a606408fe;p=tweepy.git Remove old and superfluous comments in Stream._run --- 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()