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 202b629..3a63f4b 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):