From 4b296ac4888d610aa49d62ee733389b83d2c9dc7 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 23 Dec 2015 19:24:25 +0100 Subject: [PATCH] receive.py: fix a print statement and also flush the output Remove unneeded parentheses in a print statements, and also flush the output: when using logging and redirection sometimes the output does not get printed. --- src/receive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/receive.py b/src/receive.py index 042ec63..1d4fda1 100755 --- a/src/receive.py +++ b/src/receive.py @@ -35,7 +35,7 @@ def receive(port): receiver.receive_loop() print() print("Message received!") - print((receiver.get_text())) + print(receiver.get_text(), flush=True) def main(): -- 2.1.4