receive.py: fix a print statement and also flush the output
authorAntonio Ospite <ao2@ao2.it>
Wed, 23 Dec 2015 18:24:25 +0000 (19:24 +0100)
committerAntonio Ospite <ao2@ao2.it>
Wed, 23 Dec 2015 18:24:25 +0000 (19:24 +0100)
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

index 042ec63..1d4fda1 100755 (executable)
@@ -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():