diff options
author | David Beazley <dave@dabeaz.com> | 2012-04-26 15:20:59 -0500 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2012-04-26 15:20:59 -0500 |
commit | 18c79055dd933bdc303668a8507915d1e5795ad9 (patch) | |
tree | edcf3ab6061175e0213559f00bf1d3e5a41418f0 /example | |
parent | c2859fc7e21abb2450cbbf8701bdbc59a16d3529 (diff) | |
download | ply-18c79055dd933bdc303668a8507915d1e5795ad9.tar.gz |
reverted p_error() API
Diffstat (limited to 'example')
-rw-r--r-- | example/calc/calc.py | 2 |
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: |