From da3e0f0c68b63413a14289cf5800498d608569ff Mon Sep 17 00:00:00 2001 From: alastair-irving <29164966+ajirving@users.noreply.github.com> Date: Mon, 7 Apr 2014 17:00:56 +0000 Subject: [PATCH] MOdified the print statements in test_script to make them function calls. This is the first of many changes which need to be made to make us compatible with Python 3. I hope to do this without breaking backwards compatability with python 2. --- test_script | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_script b/test_script index 3b40638..9433c1f 100755 --- a/test_script +++ b/test_script @@ -14,7 +14,7 @@ filename = '' if len(sys.argv) > 1: filename = os.path.expanduser(sys.argv[1]) if not os.path.exists(filename): - print "Config file you specified doesn't exist, continuing anyway with defaults." + print("Config file you specified doesn't exist, continuing anyway with defaults.") filename='' def activateSettings (): @@ -32,8 +32,8 @@ activateSettings () while True: input = sys.stdin.readline() output=b.translate(input) - print output + print(output) output=s.translate(input) - print output + print(output)