From 0c47016840b9b9b0feaeab6076a48da0b41d3520 Mon Sep 17 00:00:00 2001 From: Mikhail Dubov Date: Wed, 18 Jun 2014 12:59:13 +0400 Subject: [PATCH] Edit notifier.notify() * Remove the unnecessary global statement * Add a docstring Change-Id: Id9920e1e9dc10acd26ad3cef6908c1077d7568c9 --- osprofiler/notifier.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osprofiler/notifier.py b/osprofiler/notifier.py index f997007..b891f65 100644 --- a/osprofiler/notifier.py +++ b/osprofiler/notifier.py @@ -24,8 +24,10 @@ __notifier = noop_notifier def notify(info): - global __notifier + """Passes the profiling info to the notifier callable. + :param info: dictionary with profiling information + """ __notifier(info)