Skip to content

Commit

Permalink
print() function for Python 2 and 3 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and jrose-apple committed Sep 28, 2017
1 parent 1d5d149 commit 751b73d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions repl/test-repl-darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -40,4 +40,4 @@ def debug(p):
except:
debug(repl)

print "OK"
print("OK")

0 comments on commit 751b73d

Please sign in to comment.