From 00aadca31c09318973ead0e7de3b6b77049abf2b Mon Sep 17 00:00:00 2001 From: Jan Volckaert Date: Sun, 23 Feb 2025 17:04:17 +0100 Subject: [PATCH] update after running pre-commit --- displayio/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/displayio/__init__.py b/displayio/__init__.py index fad38f0..b22ce94 100644 --- a/displayio/__init__.py +++ b/displayio/__init__.py @@ -53,8 +53,8 @@ def _background(stop_event): while not stop_event.is_set(): for display in displays: display._background() # pylint: disable=protected-access - - # relax system when _background does nothing + + # relax system when _background does nothing # and we are in a while True loop consuming lots of CPU time.sleep(0.0) @@ -91,7 +91,9 @@ def allocate_display_bus(new_display_bus: _DisplayBus) -> None: background_thread_stop_event = threading.Event() -background_thread = threading.Thread(target=_background,args=(background_thread_stop_event,), daemon=True) +background_thread = threading.Thread( + target=_background, args=(background_thread_stop_event,), daemon=True +) # Start the background thread -- 2.49.0