From: Harmon Date: Mon, 12 Apr 2021 17:06:25 +0000 (-0500) Subject: Change Stream.on_closed resp parameter name to response X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=554cdb2e3bebe8a44d5bf15fe23242a0bd85f615;p=tweepy.git Change Stream.on_closed resp parameter name to response --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index ac53b13..0cb835a 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -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")