From ab2479b15da04c28144c3f4384b7aac71eaa0250 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 28 Dec 2020 07:31:19 -0600 Subject: [PATCH] Remove StreamListener.on_direct_message and StreamListener.on_friends --- tweepy/streaming.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 898a7c1..1b0fdac 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -58,13 +58,6 @@ class StreamListener: status = Status.parse(self.api, data) if self.on_event(status) is False: return False - elif 'direct_message' in data: - status = Status.parse(self.api, data) - if self.on_direct_message(status) is False: - return False - elif 'friends' in data: - if self.on_friends(data['friends']) is False: - return False elif 'limit' in data: if self.on_limit(data['limit']['track']) is False: return False @@ -106,17 +99,6 @@ class StreamListener: """Called when a new event arrives""" return - def on_direct_message(self, status): - """Called when a new direct message arrives""" - return - - def on_friends(self, friends): - """Called when a friends list arrives. - - friends is a list that contains user_id - """ - return - def on_limit(self, track): """Called when a limitation notice arrives""" return -- 2.25.1