From 1468369f48a7c01dcde6e1c75aff0bb870e3856e Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Thu, 22 Oct 2020 20:54:41 +0200 Subject: [PATCH] log_mhz19.py: flush print Otherwise redirecting stdout doesn't work. --- log_mhz19.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.39.5