From 751b73df80f90449e6c63b7ae1b7bd5d9cdea12e Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 28 Sep 2017 02:08:00 +0200 Subject: [PATCH] print() function for Python 2 and 3 (#24) --- repl/test-repl-darwin.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/repl/test-repl-darwin.py b/repl/test-repl-darwin.py index 6ef071b..a7046b4 100644 --- a/repl/test-repl-darwin.py +++ b/repl/test-repl-darwin.py @@ -17,15 +17,15 @@ swift = sys.argv[1] def debug(p): - print 'before:' - print p.before - print '--' - print 'after:' - print p.after - print '--' - print p.match.groups() - print '--' - + print('before:') + print(p.before) + print('--') + print('after:') + print(p.after) + print('--') + print(p.match.groups()) + print('--') + repl = pexpect.spawn(swift) repl.expect('(.*)Welcome to Apple Swift version (.*)\r\n') @@ -40,4 +40,4 @@ def debug(p): except: debug(repl) -print "OK" +print("OK")