log_mhz19.py: flush print
[toast/airingbutler.git] / log_mhz19.py
old mode 100644 (file)
new mode 100755 (executable)
index 57140d6..e99ceae
@@ -1,3 +1,5 @@
+#!/usr/bin/python3
+
 import argparse
 import asyncio
 import logging
@@ -26,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')