Skip to content

Commit

Permalink
reverted p_error() API
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeaz committed Apr 26, 2012
1 parent c2859fc commit 18c7905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/calc/calc.py
Expand Up @@ -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:
Expand Down

0 comments on commit 18c7905

Please sign in to comment.