Change Stream.on_closed resp parameter name to response
authorHarmon <Harmon758@gmail.com>
Mon, 12 Apr 2021 17:06:25 +0000 (12:06 -0500)
committerHarmon <Harmon758@gmail.com>
Mon, 12 Apr 2021 17:06:25 +0000 (12:06 -0500)
tweepy/streaming.py

index ac53b139080e71bb8ceeac36a8fbd0254227db8e..0cb835a099bce3768e5803767ecd2e2d3d474f4f 100644 (file)
@@ -316,12 +316,12 @@ class Stream:
         """Disconnect the stream"""
         self.running = False
 
-    def on_closed(self, resp):
+    def on_closed(self, response):
         """This is called when the stream has been closed by Twitter.
 
         Parameters
         ----------
-        resp : requests.Response
+        response : requests.Response
             The Response from Twitter
         """
         log.error("Stream connection closed by Twitter")