Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Mar 15, 2016
1 parent ae8d553 commit bbf4ccc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/cylc/message_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class MessageOutput(object):
"""
A task message output.
Used to generate an output strings.for a message triggers at cycle point.
Used to generate an output string for a message trigger at a cycle point.
TODO - these can be plain strings once the deprecated cycle point offset
placeholders are removed from cylc (see GitHub #1761).
Expand All @@ -38,7 +38,7 @@ def __init__(self, msg, base_interval=None):

def get_string(self, point):
"""Return the message string for this cycle point.
Placeholders are replaced with the actual cycle point offset.
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/cylc/task_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ def unset_outputs(self):
self.hold_on_retry = False
self.kill_failed = False
for msg in ["failed", "submit-failed", "expired"]:
self.outputs.remove(msg)
self.outputs.remove(msg)

def turn_off_timeouts(self):
"""Turn off submission and execution timeouts."""
Expand Down
3 changes: 2 additions & 1 deletion lib/cylc/task_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
BCOMPAT_MSG_RE_C6 = re.compile('^(.*)\[\s*(([+-])?\s*(.*))?\s*\](.*)$')
DEPRECN_WARN_TMPL = "WARNING: message trigger offsets are deprecated\n %s"


def get_message_offset(msg, base_interval=None):
"""Return deprecated message offset, or None.
TODO - this function can be deleted once the deprecated cycle point offset
placeholders are removed from cylc (see GitHub #1761).
Expand Down

0 comments on commit bbf4ccc

Please sign in to comment.