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 --- jasper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jasper.py') diff --git a/jasper.py b/jasper.py index dbb1c08..ff3eb81 100755 --- a/jasper.py +++ b/jasper.py @@ -113,10 +113,10 @@ class Jasper(object): if __name__ == "__main__": - print "===========================================================" - print " JASPER The Talking Computer " - print " Copyright 2013 Shubhro Saha & Charlie Marsh " - print "===========================================================" + print("===========================================================") + print(" JASPER The Talking Computer ") + print(" Copyright 2013 Shubhro Saha & Charlie Marsh ") + print("===========================================================") logging.basicConfig() logger = logging.getLogger() -- cgit v1.3.1 From 631d6841a96db0b50fd2ebd2d23dc669fe30afee Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 4 Dec 2014 17:15:29 +0100 Subject: Change client.stt loglevel to INFO, so that users can see what was transcribed without having to use --debug --- jasper.py | 1 + 1 file changed, 1 insertion(+) (limited to 'jasper.py') diff --git a/jasper.py b/jasper.py index ff3eb81..1a61981 100755 --- a/jasper.py +++ b/jasper.py @@ -120,6 +120,7 @@ if __name__ == "__main__": logging.basicConfig() logger = logging.getLogger() + logger.getChild("client.stt").setLevel(logging.INFO) if args.debug: logger.setLevel(logging.DEBUG) -- cgit v1.3.1