Remove old and superfluous comments in Stream._run
authorHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 16:02:43 +0000 (10:02 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 23 Jan 2021 16:02:43 +0000 (10:02 -0600)
tweepy/streaming.py

index cae983f2978ade04b6cedddb45cf7b09834b6f0b..d76b844b9df69a0448d98ccf0894c9444105d4ab 100644 (file)
@@ -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()