diff options
Diffstat (limited to 'example/yply/yply.py')
-rwxr-xr-x | example/yply/yply.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/yply/yply.py b/example/yply/yply.py index 1aa24c3..e24616c 100755 --- a/example/yply/yply.py +++ b/example/yply/yply.py @@ -29,14 +29,14 @@ import yparse from ply import * if len(sys.argv) == 1: - print "usage : yply.py [-nocode] inputfile" + print("usage : yply.py [-nocode] inputfile") raise SystemExit if len(sys.argv) == 3: if sys.argv[1] == '-nocode': yparse.emit_code = 0 else: - print "Unknown option '%s'" % sys.argv[1] + print("Unknown option '%s'" % sys.argv[1]) raise SystemExit filename = sys.argv[2] else: @@ -44,8 +44,8 @@ else: yacc.parse(open(filename).read()) -print """ +print(""" if __name__ == '__main__': from ply import * yacc.yacc() -""" +""") |