diff options
author | David Beazley <dave@dabeaz.com> | 2008-11-27 19:36:14 +0000 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2008-11-27 19:36:14 +0000 |
commit | ca5170e19a22acc8c960c1e2d60ecf353a197057 (patch) | |
tree | 3d18cafc75d61f3bc5412338db061175e796a212 /test/yacc_nodoc.py | |
parent | c66982f8e7dc7de7bbb73c1e40699fd22aef5eac (diff) | |
download | ply-ca5170e19a22acc8c960c1e2d60ecf353a197057.tar.gz |
Python 2.6/3.0 compatibility changes
Diffstat (limited to 'test/yacc_nodoc.py')
-rw-r--r-- | test/yacc_nodoc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/yacc_nodoc.py b/test/yacc_nodoc.py index 6b662a5..0f61920 100644 --- a/test/yacc_nodoc.py +++ b/test/yacc_nodoc.py @@ -25,7 +25,7 @@ def p_statement_assign(t): names[t[1]] = t[3] def p_statement_expr(t): - print t[1] + print(t[1]) def p_expression_binop(t): '''expression : expression PLUS expression @@ -54,11 +54,11 @@ def p_expression_name(t): try: t[0] = names[t[1]] except LookupError: - print "Undefined name '%s'" % t[1] + print("Undefined name '%s'" % t[1]) t[0] = 0 def p_error(t): - print "Syntax error at '%s'" % t.value + print("Syntax error at '%s'" % t.value) yacc.yacc() |