summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2012-04-26 15:20:59 -0500
committerDavid Beazley <dave@dabeaz.com>2012-04-26 15:20:59 -0500
commit18c79055dd933bdc303668a8507915d1e5795ad9 (patch)
treeedcf3ab6061175e0213559f00bf1d3e5a41418f0 /example
parentc2859fc7e21abb2450cbbf8701bdbc59a16d3529 (diff)
downloadply-18c79055dd933bdc303668a8507915d1e5795ad9.tar.gz
reverted p_error() API
Diffstat (limited to 'example')
-rw-r--r--example/calc/calc.py2
1 files changed, 1 insertions, 1 deletions
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: