lint: Clean up E121 PEP-8 rule.

This commit is contained in:
Tim Abbott 2017-01-23 21:02:39 -08:00
parent 07cdd69e42
commit 4d81b91185
3 changed files with 14 additions and 14 deletions

View file

@ -32,12 +32,12 @@ def create_chat_bot(no_learn):
storage_adapter="chatterbot.storage.JsonFileStorageAdapter", storage_adapter="chatterbot.storage.JsonFileStorageAdapter",
logic_adapters= logic_adapters=
[ [
"chatterbot.logic.MathematicalEvaluation", "chatterbot.logic.MathematicalEvaluation",
{ {
"import_path": "chatterbot.logic.BestMatch", "import_path": "chatterbot.logic.BestMatch",
"response_selection_method": "chatterbot.response_selection.get_random_response", "response_selection_method": "chatterbot.response_selection.get_random_response",
"statement_comparison_function": "chatterbot.comparisons.levenshtein_distance" "statement_comparison_function": "chatterbot.comparisons.levenshtein_distance"
}], }],
output_adapter="chatterbot.output.OutputFormatAdapter", output_adapter="chatterbot.output.OutputFormatAdapter",
output_format='text', output_format='text',
database=DATABASE_PATH, database=DATABASE_PATH,

View file

@ -150,10 +150,10 @@ else:
for status in statuses[::-1][:options.limit_tweets]: for status in statuses[::-1][:options.limit_tweets]:
composed = "%s (%s)" % (status.user.name, status.user.screen_name) composed = "%s (%s)" % (status.user.name, status.user.screen_name)
message = { message = {
"type": "stream", "type": "stream",
"to": [options.stream], "to": [options.stream],
"subject": composed, "subject": composed,
"content": status.text, "content": status.text,
} }
ret = client.send_message(message) ret = client.send_message(message)

View file

@ -176,10 +176,10 @@ for status in statuses[::-1][:opts.limit_tweets]:
search_term_used = "mentions" search_term_used = "mentions"
message = { message = {
"type": "stream", "type": "stream",
"to": [opts.stream], "to": [opts.stream],
"subject": search_term_used, "subject": search_term_used,
"content": url, "content": url,
} }
ret = client.send_message(message) ret = client.send_message(message)