Linting
This commit is contained in:
parent
40a22b20c8
commit
be6abe2557
|
@ -391,7 +391,7 @@ class Squirrel(Hazelnut):
|
||||||
for c in reversed(demojized):
|
for c in reversed(demojized):
|
||||||
curses.ungetch(c)
|
curses.ungetch(c)
|
||||||
|
|
||||||
def handle_command(self, command: str) -> None:
|
def handle_command(self, command: str) -> None: # noqa: C901
|
||||||
"""
|
"""
|
||||||
The user sent a command. We analyse it and process what is needed.
|
The user sent a command. We analyse it and process what is needed.
|
||||||
"""
|
"""
|
||||||
|
@ -526,7 +526,7 @@ class Squirrel(Hazelnut):
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
|
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
self.add_system_message(f"**Addresses:** "
|
self.add_system_message("**Addresses:** "
|
||||||
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
|
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
elif command == "active":
|
elif command == "active":
|
||||||
|
@ -539,7 +539,7 @@ class Squirrel(Hazelnut):
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
|
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
self.add_system_message(f"**Addresses:** "
|
self.add_system_message("**Addresses:** "
|
||||||
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
|
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
elif command == "potential":
|
elif command == "potential":
|
||||||
|
@ -552,7 +552,7 @@ class Squirrel(Hazelnut):
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
|
self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}",
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
self.add_system_message(f"**Addresses:** "
|
self.add_system_message("**Addresses:** "
|
||||||
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
|
+ ", ".join(f"{address}:{port}" for address, port in hazel.addresses),
|
||||||
italic=False, ignore_debug=True)
|
italic=False, ignore_debug=True)
|
||||||
elif command == "debug":
|
elif command == "debug":
|
||||||
|
|
Loading…
Reference in New Issue