From: gregor herrmann Date: Thu, 22 Oct 2020 18:54:41 +0000 (+0200) Subject: log_mhz19.py: flush print X-Git-Url: https://git.toastfreeware.priv.at/toast/airingbutler.git/commitdiff_plain/1468369f48a7c01dcde6e1c75aff0bb870e3856e log_mhz19.py: flush print Otherwise redirecting stdout doesn't work. --- diff --git a/log_mhz19.py b/log_mhz19.py index 18ffb11..e99ceae 100755 --- a/log_mhz19.py +++ b/log_mhz19.py @@ -28,7 +28,7 @@ class Receiver(asyncio.Protocol): def data_received(self, data): data = data.decode() - print(data, end='') + print(data, end='', flush=True) def connection_lost(self, exc): log.debug('port closed')