From: Antonio Ospite Date: Wed, 23 Dec 2015 18:24:25 +0000 (+0100) Subject: receive.py: fix a print statement and also flush the output X-Git-Url: https://git.ao2.it/SaveMySugar/python3-savemysugar.git/commitdiff_plain/4b296ac4888d610aa49d62ee733389b83d2c9dc7?ds=sidebyside;hp=f06c28ca9340c78923dc595af0730c5ebbc113a0 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. --- 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():