From 693406483f2a8a33d7ee64b4988d6875a1950c4d Mon Sep 17 00:00:00 2001 From: vunhat_minh Date: Fri, 5 Sep 2014 12:55:42 +0900 Subject: [PATCH] lambda *args: None --- rainbowstream/draw.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rainbowstream/draw.py b/rainbowstream/draw.py index 202b629..3a63f4b 100644 --- a/rainbowstream/draw.py +++ b/rainbowstream/draw.py @@ -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): -- 2.25.1