Skip to content

Commit

Permalink
Rename Stream.on_disconnect to on_disconnect_message
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jan 24, 2021
1 parent 8dfb85d commit 6c3b997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def on_data(self, raw_data):
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:
Expand All @@ -249,7 +249,7 @@ def on_delete(self, status_id, user_id):
"""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:
Expand Down

0 comments on commit 6c3b997

Please sign in to comment.