lambda *args: None
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 5 Sep 2014 03:55:42 +0000 (12:55 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 5 Sep 2014 03:55:42 +0000 (12:55 +0900)
rainbowstream/draw.py

index 202b629a31220b33aa61e6f891222f63847e4d7b..3a63f4b8a8185ffd6371e1594d2144722ac20c4d 100644 (file)
@@ -851,13 +851,6 @@ def notify_list_user_unsubscribed(e):
     print_list(target_object, noti=True)
 
 
-def nothing(e):
-    """
-    Do nothing for other event
-    """
-    return
-
-
 def print_event(e):
     """
     Notify an event
@@ -872,7 +865,7 @@ def print_event(e):
         'list_user_subscribed': notify_list_user_subscribed,
         'list_user_unsubscribed': notify_list_user_unsubscribed,
     }
-    event_dict.get(e['event'], nothing)(e)
+    event_dict.get(e['event'], lambda *args: None)(e)
 
 
 def show_profile(u):