diff options
Diffstat (limited to 'test/yacc_badprec.py')
-rw-r--r-- | test/yacc_badprec.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/yacc_badprec.py b/test/yacc_badprec.py index ed2e3db..3013bb6 100644 --- a/test/yacc_badprec.py +++ b/test/yacc_badprec.py @@ -22,7 +22,7 @@ def p_statement_assign(t): def p_statement_expr(t): 'statement : expression' - print t[1] + print(t[1]) def p_expression_binop(t): '''expression : expression PLUS expression @@ -51,11 +51,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() |