Commit 3d44315d authored by Guido Günther's avatar Guido Günther

notifications: flake8 clean

parent 94ff329e
......@@ -19,6 +19,7 @@ import warnings
notify_module = None
def enable_notifications():
global notify_module
......@@ -37,7 +38,7 @@ def enable_notifications():
def build_msg(cp, success):
summary = "Gbp %s" % ["failed", "successful"][success]
msg = ("Build of %s %s %s" %
(cp['Source'], cp['Version'], ["failed", "succeeded"][success]))
(cp['Source'], cp['Version'], ["failed", "succeeded"][success]))
return summary, msg
......@@ -67,4 +68,3 @@ def notify(summary, message, notify_opt):
return [True, False][notify_opt.is_on()]
return notify_opt.do(send_notification, summary, message)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment