From 6c3b997df0070b6ab7ead9cd0482cb66088ef229 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 24 Jan 2021 08:45:02 -0600 Subject: [PATCH] Rename Stream.on_disconnect to on_disconnect_message --- tweepy/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index d94a4f1..6e1a0db 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -227,7 +227,7 @@ class Stream: delete = data['delete']['status'] return self.on_delete(delete['id'], delete['user_id']) if 'disconnect' in data: - return self.on_disconnect(data['disconnect']) + return self.on_disconnect_message(data['disconnect']) if 'limit' in data: return self.on_limit(data['limit']['track']) if 'scrub_geo' in data: @@ -249,7 +249,7 @@ class Stream: """Called when a delete notice arrives for a status""" log.debug("Received status deletion notice: %d", status_id) - def on_disconnect(self, notice): + def on_disconnect_message(self, notice): """Called when twitter sends a disconnect notice Disconnect codes are listed here: -- 2.25.1