modernize

This commit is contained in:
Pavol Rusnak 2024-10-07 11:15:03 +02:00
parent 5e15c43ab7
commit 2a13ed0921
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
103 changed files with 822 additions and 906 deletions

View file

@ -22,11 +22,11 @@ class BasicCommandPlugin(SidebandCommandPlugin):
super().stop()
def handle_command(self, arguments, lxm):
response_content = "Hello "+RNS.prettyhexrep(lxm.source_hash)+". "
response_content = f"Hello {RNS.prettyhexrep(lxm.source_hash)}. "
response_content += "This is a response from the basic command example. It doesn't do much, but here is a list of the arguments you included:\n"
for argument in arguments:
response_content += "\n"+str(argument)
response_content += f"\n{argument)}"
# Let the Sideband core send a reply.
self.get_sideband().send_message(