Permalink
Browse files

Replace leftover use of tdop.ParseError by p_die (#102)

  • Loading branch information...
Yorwba authored and andychu committed May 5, 2018
1 parent 2ec7302 commit b300a34ac8891ceec1e89cc7c9a16815ecf3d4fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 osh/arith_parse.py
View
@@ -90,7 +90,7 @@ def LeftFuncCall(p, t, left, unused_bp):
children = []
# f(x) or f[i](x)
if not tdop.IsCallable(left):
raise tdop.ParseError("%s can't be called" % left)
p_die("%s can't be called", left, word=t)
while not p.AtToken(Id.Arith_RParen):
# We don't want to grab the comma, e.g. it is NOT a sequence operator. So
# set the precedence to 5.

0 comments on commit b300a34

Please sign in to comment.