From 7feaabe7643c09461ed5cb33ebfbaf1fffdc5fe9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 4 Mar 2021 15:27:27 +0000 Subject: [PATCH] Tidying --- speaker_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/speaker_client.py b/speaker_client.py index 8a5be1a73..447a79986 100644 --- a/speaker_client.py +++ b/speaker_client.py @@ -25,9 +25,10 @@ def _waitForKeypress(timeout: int, debug: bool) -> str: i, o, e = select.select([sys.stdin], [], [], timeout) if (i): + text = sys.stdin.readline().strip() if debug: - print("Text entered: " + sys.stdin.readline().strip()) - return sys.stdin.readline().strip() + print("Text entered: " + text) + return text else: if debug: print("Timeout")