projects
/
SaveMySugar
/
python3-savemysugar.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f06c28c
)
receive.py: fix a print statement and also flush the output
author
Antonio Ospite <ao2@ao2.it>
Wed, 23 Dec 2015 18:24:25 +0000
(19:24 +0100)
committer
Antonio 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
patch
|
blob
|
history
diff --git
a/src/receive.py
b/src/receive.py
index
042ec63
..
1d4fda1
100755
(executable)
--- 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():