Add Python 3 compatibility to PYTHON package

This commit is contained in:
Richard Berger
2017-04-11 20:24:42 -04:00
parent 4da8c1c4e2
commit 9a027a01da
6 changed files with 58 additions and 23 deletions

View File

@ -25,13 +25,14 @@ run 10
# example of catching a syntax error
python simple here """
from __future__ import print_function
def simple():
import exceptions
print "Inside simple function"
print("Inside simple function")
try:
foo += 1
except Exception, e:
print "FOO error:",e
except Exception as e:
print("FOO error:", e)
"""
python simple invoke