1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-04-15 15:20:45 +01:00

framework/signal: Whitespace

This commit is contained in:
Brendan Jackman 2017-11-03 13:25:30 +00:00 committed by setrofim
parent 200aa84d0b
commit 47e9b95d4d

View File

@ -81,7 +81,7 @@ RUN_COMPLETED = Signal('run-completed', 'set upon completion of the run (regardl
JOB_STARTED = Signal('job-started', 'set when a a new job has been started') JOB_STARTED = Signal('job-started', 'set when a a new job has been started')
JOB_ABORTED = Signal('job-aborted', JOB_ABORTED = Signal('job-aborted',
description=''' description='''
sent if a job has been aborted due to a keyboard interrupt. sent if a job has been aborted due to a keyboard interrupt.
.. note:: While the status of every job that has not had a .. note:: While the status of every job that has not had a
chance to run due to being interrupted will be chance to run due to being interrupted will be
@ -301,11 +301,11 @@ def send(signal, sender=dispatcher.Anonymous, *args, **kwargs):
log_error_func = logger.error log_error_func = logger.error
def safe_send(signal, sender=dispatcher.Anonymous, def safe_send(signal, sender=dispatcher.Anonymous,
propagate=[KeyboardInterrupt], *args, **kwargs): propagate=[KeyboardInterrupt], *args, **kwargs):
""" """
Same as ``send``, except this will catch and log all exceptions raised Same as ``send``, except this will catch and log all exceptions raised
by handlers, except those specified in ``propagate`` argument (defaults by handlers, except those specified in ``propagate`` argument (defaults
to just ``[KeyboardInterrupt]``). to just ``[KeyboardInterrupt]``).
""" """
try: try: