Fix one more call to ParseError

This commit is contained in:
rocky
2020-03-31 10:46:00 -04:00
parent 663bc06bb9
commit 3afc5a599a

View File

@@ -209,7 +209,7 @@ class PythonParser(GenericASTBuilder):
print("%s%s" % (indent, instructions[i])) print("%s%s" % (indent, instructions[i]))
raise ParserError(err_token, err_token.offset, self.debug["reduce"]) raise ParserError(err_token, err_token.offset, self.debug["reduce"])
else: else:
raise ParserError(None, -1) raise ParserError(None, -1, self.debug["reduce"])
def get_pos_kw(self, token): def get_pos_kw(self, token):
"""Return then the number of positional parameters and """Return then the number of positional parameters and