Permalink
Browse files

reverted p_error() API

  • Loading branch information...
1 parent db0b431 commit a92eae1ccce335597a053bb3fea28586b3997f44 @dabeaz committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/yacc_error6.py
View
2 test/yacc_error6.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

0 comments on commit a92eae1

Please sign in to comment.