From c3e1ddb7e7c4eb76af1f2ff55e7a1ae093a14ce3 Mon Sep 17 00:00:00 2001 From: Vinay Rao Date: Mon, 12 Feb 2018 17:12:53 -0800 Subject: [PATCH] Print statement causing failure in Python 2.7 https://stackoverflow.com/questions/32032697/how-to-use-from-future-import-print-function --- google-assistant-sdk/googlesamples/assistant/library/hotword.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-assistant-sdk/googlesamples/assistant/library/hotword.py b/google-assistant-sdk/googlesamples/assistant/library/hotword.py index 2960e5d..c5e3ed9 100644 --- a/google-assistant-sdk/googlesamples/assistant/library/hotword.py +++ b/google-assistant-sdk/googlesamples/assistant/library/hotword.py @@ -89,7 +89,7 @@ def register_device(project_id, credentials, device_model_id, device_id): r = session.get(device_url) print(device_url, r.status_code) if r.status_code == 404: - print('Registering....', end='', flush=True) + print('Registering....') r = session.post(base_url, data=json.dumps({ 'id': device_id, 'model_id': device_model_id,