mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 21:08:03 +00:00
use "walrus" operator (didn't know about it, doh!)
This commit is contained in:
@@ -6,11 +6,7 @@ import traceback
|
|||||||
|
|
||||||
|
|
||||||
def _run_loop(cmd_channel):
|
def _run_loop(cmd_channel):
|
||||||
while 1:
|
while cmd := cmd_channel.receive():
|
||||||
cmd = cmd_channel.receive()
|
|
||||||
if cmd is None:
|
|
||||||
break
|
|
||||||
|
|
||||||
cmd_channel.send(_handle_one_request(cmd))
|
cmd_channel.send(_handle_one_request(cmd))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user