summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/yacc_error7.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/yacc_error7.py b/test/yacc_error7.py
index 0e7c0a7..fb131be 100644
--- a/test/yacc_error7.py
+++ b/test/yacc_error7.py
@@ -51,7 +51,7 @@ def p_expression_number(t):
'expression : NUMBER'
t[0] = t[1]
-def p_error(p, parser):
+def p_error(p):
if p:
print("Line %d: Syntax error at '%s'" % (p.lineno, p.value))
# Scan ahead looking for a name token