use "walrus" operator (didn't know about it, doh!)

This commit is contained in:
holger krekel
2024-08-13 14:50:27 +02:00
parent e973bc1f41
commit e32d81520a

View File

@@ -6,11 +6,7 @@ import traceback
def _run_loop(cmd_channel):
while 1:
cmd = cmd_channel.receive()
if cmd is None:
break
while cmd := cmd_channel.receive():
cmd_channel.send(_handle_one_request(cmd))