From b9331657072775e10351a08198a43eae2a785ad5 Mon Sep 17 00:00:00 2001 From: dece Date: Tue, 1 Jun 2021 21:40:41 +0200 Subject: [PATCH] linting --- bebop/protocol.py | 2 +- bebop/tests/test_mime.py | 2 +- bebop/textbox.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bebop/protocol.py b/bebop/protocol.py index bbf11b1..881642e 100644 --- a/bebop/protocol.py +++ b/bebop/protocol.py @@ -163,7 +163,7 @@ class Request: except FileNotFoundError as exc: sock.close() self.state = Request.STATE_CONNECTION_FAILED - self.error = "Could not load identity files." + self.error = "Could not load identity files ({exc})" logging.error(f"Failed to load identity files {self.identity}") return False diff --git a/bebop/tests/test_mime.py b/bebop/tests/test_mime.py index 54743b6..48f2b17 100644 --- a/bebop/tests/test_mime.py +++ b/bebop/tests/test_mime.py @@ -1,6 +1,6 @@ import unittest -from ..mime import MimeType, DEFAULT_CHARSET, DEFAULT_MIME_TYPE +from ..mime import MimeType class TestMime(unittest.TestCase): diff --git a/bebop/textbox.py b/bebop/textbox.py index 4453cca..dab61d5 100644 --- a/bebop/textbox.py +++ b/bebop/textbox.py @@ -11,7 +11,7 @@ This version fixes a few quirks of the standard module, namely: - Discard multi-lines mode: only one line is supported. - Moving in line more reasonably: no more going alone rightward. -- Handle Unicode +- Handle Unicode. """ import curses @@ -31,7 +31,7 @@ class Textbox: - Ctrl-L: Refresh screen. Move operations do nothing if the cursor is at an edge where the movement - is not possible. The following synonyms are supported where possible: + is not possible. The following synonyms are supported where possible: - KEY_LEFT: Ctrl-B - KEY_RIGHT: Ctrl-F