Skip to content

Commit

Permalink
Fix syntax for py3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Dec 1, 2024
1 parent ce50561 commit 9a79bc8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions blinkenxmas/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 9a79bc8

Please sign in to comment.