From: vunhat_minh Date: Fri, 5 Sep 2014 03:55:42 +0000 (+0900) Subject: lambda *args: None X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=693406483f2a8a33d7ee64b4988d6875a1950c4d;p=rainbowstream.git lambda *args: None --- 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):