From 9a79bc88618885cd725b689e9c65c64ba7ef6163 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Sun, 1 Dec 2024 21:22:26 +0000 Subject: [PATCH] Fix syntax for py3.7 --- blinkenxmas/web.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/blinkenxmas/web.py b/blinkenxmas/web.py index 37a44de..e541650 100644 --- a/blinkenxmas/web.py +++ b/blinkenxmas/web.py @@ -75,10 +75,8 @@ def main(args=None): 'No LED strips defined; please edit the configuration file') queue = Queue() messages = httpd.Messages() - with ( - mqtt.MessageThread(config, queue) as message_task, - httpd.HTTPThread(config, messages, queue) as httpd_task, - ): + with mqtt.MessageThread(config, queue) as message_task, \ + httpd.HTTPThread(config, messages, queue) as httpd_task: while True: httpd_task.join(1) if not httpd_task.is_alive():