lint: Clean up E123 PEP-8 rule.
This commit is contained in:
parent
5b3d2c9100
commit
55e8d5f58d
|
@ -90,7 +90,7 @@ if options.sharded:
|
|||
("tabbott-nagios-test-12", "d"),
|
||||
("tabbott-nagios-test-11", "e"),
|
||||
("tabbott-nagios-test-9", "f"),
|
||||
]
|
||||
]
|
||||
for (stream, test) in test_streams:
|
||||
if stream == "message":
|
||||
continue
|
||||
|
@ -99,7 +99,7 @@ else:
|
|||
test_streams = [
|
||||
("message", "p"),
|
||||
("tabbott-nagios-test", "a"),
|
||||
]
|
||||
]
|
||||
|
||||
def print_status_and_exit(status):
|
||||
# type: (int) -> None
|
||||
|
@ -262,7 +262,7 @@ for key, (stream, test) in hzkeys.items():
|
|||
"subject": "test",
|
||||
"content": str(key),
|
||||
"to": stream,
|
||||
})
|
||||
})
|
||||
receive_zephyrs()
|
||||
|
||||
logger.info("Sent Zulip messages!")
|
||||
|
|
|
@ -69,7 +69,7 @@ class IRCBot(irc.bot.SingleServerIRCBot):
|
|||
"type": "private",
|
||||
"to": "username@example.com",
|
||||
"content": content,
|
||||
}))
|
||||
}))
|
||||
|
||||
def on_pubmsg(self, c, e):
|
||||
# type: (ServerConnection, Event) -> None
|
||||
|
@ -87,7 +87,7 @@ class IRCBot(irc.bot.SingleServerIRCBot):
|
|||
"to": stream,
|
||||
"subject": "IRC",
|
||||
"content": content,
|
||||
}))
|
||||
}))
|
||||
|
||||
def on_dccmsg(self, c, e):
|
||||
# type: (ServerConnection, Event) -> None
|
||||
|
|
|
@ -171,7 +171,7 @@ class JabberToZulipBot(ClientXMPP):
|
|||
type = "private",
|
||||
to = recipient,
|
||||
content = msg["body"],
|
||||
)
|
||||
)
|
||||
ret = self.zulipToJabber.client.send_message(zulip_message)
|
||||
if ret.get("result") != "success":
|
||||
logging.error(str(ret))
|
||||
|
@ -199,7 +199,7 @@ class JabberToZulipBot(ClientXMPP):
|
|||
subject = subject,
|
||||
to = stream,
|
||||
content = msg["body"],
|
||||
)
|
||||
)
|
||||
ret = self.zulipToJabber.client.send_message(zulip_message)
|
||||
if ret.get("result") != "success":
|
||||
logging.error(str(ret))
|
||||
|
|
|
@ -45,7 +45,7 @@ def send_log_zulip(file_name, count, lines, extra=""):
|
|||
"to": "logs",
|
||||
"subject": "%s on %s" % (file_name, platform.node()),
|
||||
"content": content,
|
||||
})
|
||||
})
|
||||
|
||||
def process_lines(raw_lines, file_name):
|
||||
# type: (List[str], str) -> None
|
||||
|
|
|
@ -85,7 +85,7 @@ def run_message_handler_for_bot(lib_module, quiet, config_file):
|
|||
message=message,
|
||||
client=restricted_client,
|
||||
state_handler=state_handler
|
||||
)
|
||||
)
|
||||
|
||||
signal.signal(signal.SIGINT, exit_gracefully)
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ Example Inputs:
|
|||
subject=message['subject'],
|
||||
to=message['display_recipient'],
|
||||
content=letter,
|
||||
))
|
||||
))
|
||||
|
||||
def handle_message(self, message, client, state_handler):
|
||||
words = message['content'].split()
|
||||
|
|
|
@ -52,4 +52,4 @@ print(client.create_user({
|
|||
'password': options.new_password,
|
||||
'full_name': options.new_full_name,
|
||||
'short_name': options.new_short_name
|
||||
}))
|
||||
}))
|
||||
|
|
|
@ -80,7 +80,7 @@ def send_update(ticket, content):
|
|||
"to": config.STREAM_FOR_NOTIFICATIONS,
|
||||
"content": content,
|
||||
"subject": trac_subject(ticket)
|
||||
})
|
||||
})
|
||||
|
||||
class ZulipPlugin(Component):
|
||||
implements(ITicketChangeListener)
|
||||
|
|
|
@ -288,7 +288,7 @@ class Client(object):
|
|||
client_name=self.client_name,
|
||||
vendor=vendor,
|
||||
vendor_version=vendor_version,
|
||||
)
|
||||
)
|
||||
|
||||
def do_api_query(self, orig_request, url, method="POST", longpolling=False, files=None):
|
||||
# type: (Mapping[str, Any], str, str, bool, List[IO]) -> Dict[str, Any]
|
||||
|
|
Loading…
Reference in a new issue