def chat_server(addr):
    my_nick = until_eol().strip()
    while True:
        evt, data = first(until_eol=True, waits=['chat_message'])
        if evt == 'until_eol':
           fire('chat_message', (my_nick, data.strip()))
        else:
            nick, message = data
            send((nick, message)  % "<%s> %s\r\n")
dataset/ETHPy150Open dieseldev/diesel/examples/consolechat.py/chat_server/swapped operands of `%`