summaryrefslogtreecommitdiff
path: root/test/yacc_nodoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/yacc_nodoc.py')
-rw-r--r--test/yacc_nodoc.py6
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()