From be6abe2557d7b2878b05cbef4e2b095fb83bb2d4 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 6 Jan 2021 15:50:29 +0100 Subject: [PATCH] Linting --- squinnondation/hazel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/squinnondation/hazel.py b/squinnondation/hazel.py index f4d4b69..a1e006a 100644 --- a/squinnondation/hazel.py +++ b/squinnondation/hazel.py @@ -391,7 +391,7 @@ class Squirrel(Hazelnut): for c in reversed(demojized): 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. """ @@ -526,7 +526,7 @@ class Squirrel(Hazelnut): italic=False, ignore_debug=True) self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}", 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), italic=False, ignore_debug=True) elif command == "active": @@ -539,7 +539,7 @@ class Squirrel(Hazelnut): italic=False, ignore_debug=True) self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}", 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), italic=False, ignore_debug=True) elif command == "potential": @@ -552,7 +552,7 @@ class Squirrel(Hazelnut): italic=False, ignore_debug=True) self.add_system_message(f"**Nickname:** {hazel.nickname or '<*unknown*>'}", 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), italic=False, ignore_debug=True) elif command == "debug":