From 18c79055dd933bdc303668a8507915d1e5795ad9 Mon Sep 17 00:00:00 2001 From: David Beazley Date: Thu, 26 Apr 2012 15:20:59 -0500 Subject: [PATCH] reverted p_error() API --- example/calc/calc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/calc/calc.py b/example/calc/calc.py index 17df4e7..b923780 100644 --- a/example/calc/calc.py +++ b/example/calc/calc.py @@ -89,7 +89,7 @@ def p_expression_name(p): print("Undefined name '%s'" % p[1]) p[0] = 0 -def p_error(p,parser): +def p_error(p): if p: print("Syntax error at '%s'" % p.value) else: