Skip to content

Commit 751b73d

Browse files
cclaussjrose-apple
cclauss
authored andcommitted
print() function for Python 2 and 3 (#24)
1 parent 1d5d149 commit 751b73d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

repl/test-repl-darwin.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
swift = sys.argv[1]
1818

1919
def debug(p):
20-
print 'before:'
21-
print p.before
22-
print '--'
23-
print 'after:'
24-
print p.after
25-
print '--'
26-
print p.match.groups()
27-
print '--'
28-
20+
print('before:')
21+
print(p.before)
22+
print('--')
23+
print('after:')
24+
print(p.after)
25+
print('--')
26+
print(p.match.groups())
27+
print('--')
28+
2929
repl = pexpect.spawn(swift)
3030

3131
repl.expect('(.*)Welcome to Apple Swift version (.*)\r\n')
@@ -40,4 +40,4 @@ def debug(p):
4040
except:
4141
debug(repl)
4242

43-
print "OK"
43+
print("OK")

0 commit comments

Comments
 (0)