From: Harmon Date: Sat, 23 Jan 2021 19:17:52 +0000 (-0600) Subject: Rename Stream.retry_count to max_retries X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3585f134ecfc5e1c25d37cb6d5bd21fd2d913aa9;p=tweepy.git Rename Stream.retry_count to max_retries --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index ba8b508..968af32 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -129,7 +129,7 @@ class Stream: self.listener = listener self.running = False self.daemon = options.get("daemon", False) - self.retry_count = options.get("retry_count", inf) + self.max_retries = options.get("max_retries", inf) # The default socket.read size. Default to less than half the size of # a tweet so that it reads tweets with the minimal latency of 2 reads @@ -166,7 +166,7 @@ class Stream: http_420_error_wait_start = 60 try: - while self.running and error_count <= self.retry_count: + while self.running and error_count <= self.max_retries: try: with self.session.request( 'POST', url, params=params, data=body,