Use parenthesis to wrap strings over multiple lines

Change-Id: Id85fae325b1de97bc90c9555ad9a17b4f3436ef3
This commit is contained in:
Dougal Matthews 2016-09-26 10:58:33 +01:00
parent 2abeeb7353
commit 6d5cd6609e
3 changed files with 9 additions and 8 deletions

View File

@ -213,8 +213,8 @@ class Execution(resource.Resource):
"description of workflow execution."
params = types.jsontype
"params define workflow type specific parameters. For example, reverse \
workflow takes one parameter 'task_name' that defines a target task."
("params define workflow type specific parameters. For example, reverse "
"workflow takes one parameter 'task_name' that defines a target task.")
task_execution_id = wtypes.text
"reference to the parent task execution"
@ -282,8 +282,8 @@ class Task(resource.Resource):
workflow_execution_id = wtypes.text
state = wtypes.text
"state can take one of the following values: \
IDLE, RUNNING, SUCCESS, ERROR, DELAYED"
("state can take one of the following values: "
"IDLE, RUNNING, SUCCESS, ERROR, DELAYED")
state_info = wtypes.text
"an optional state information string"

View File

@ -86,8 +86,8 @@ def run_execution_expiration_policy(self, ctx):
)
db_api.delete_workflow_execution(execution.id)
except Exception as e:
msg = "Failed to delete [execution_id=%s]\n %s" \
% (execution.id, traceback.format_exc(e))
msg = ("Failed to delete [execution_id=%s]\n %s"
% (execution.id, traceback.format_exc(e)))
LOG.warning(msg)
finally:
auth_ctx.set_ctx(None)

View File

@ -126,8 +126,9 @@ class ActionExecutionTestsV2(base.TestCase):
resp, body = self.client.create_action_execution(
{
'name': 'std.http',
'input': '{{"url": "http://localhost:8989/v2/workflows",\
"headers": {{"X-Auth-Token": "{}"}}}}'.format(token)
'input': ('{{"url": "http://localhost:8989/v2/workflows",'
'"headers": {{"X-Auth-Token": "{}"}}}}'
).format(token)
}
)