From 87bdc5e4b5a788547764e1c222008a6c7c54232a Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 4 Dec 2014 16:56:49 +0100 Subject: Use Python-3-style print function to match coding style This also makes a possible transition to Python 3.x easier --- client/stt.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'client/stt.py') diff --git a/client/stt.py b/client/stt.py index 543a322..9eb07e7 100644 --- a/client/stt.py +++ b/client/stt.py @@ -138,11 +138,13 @@ class PocketSphinxSTT(AbstractSTTEngine): self._logger.debug(line.strip()) f.truncate() - print "===================" - print "JASPER: " + result[0] - print "===================" + transcribed = [result[0]] - return [result[0]] + print("===================") + print("JASPER: %r" % transcribed) + print("===================") + + return transcribed @classmethod def is_available(cls): -- cgit v1.3.1