Remove StreamListener.on_event
authorHarmon <Harmon758@gmail.com>
Tue, 29 Dec 2020 12:18:10 +0000 (06:18 -0600)
committerHarmon <Harmon758@gmail.com>
Tue, 29 Dec 2020 12:18:10 +0000 (06:18 -0600)
tweepy/streaming.py

index 1821727547334332efe4ce6dfda163d9705c9042..3e5173fb4889c9b7fe4d2fc7aed7582f53aad3a8 100644 (file)
@@ -52,9 +52,6 @@ class StreamListener:
         if 'delete' in data:
             delete = data['delete']['status']
             return self.on_delete(delete['id'], delete['user_id'])
-        if 'event' in data:
-            status = Status.parse(self.api, data)
-            return self.on_event(status)
         if 'limit' in data:
             return self.on_limit(data['limit']['track'])
         if 'disconnect' in data:
@@ -86,10 +83,6 @@ class StreamListener:
         """Called when a delete notice arrives for a status"""
         return
 
-    def on_event(self, status):
-        """Called when a new event arrives"""
-        return
-
     def on_limit(self, track):
         """Called when a limitation notice arrives"""
         return