lint: Clean up E121 PEP-8 rule.
This commit is contained in:
parent
07cdd69e42
commit
4d81b91185
|
@ -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,
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue