Kaydet (Commit) 66ebd912 authored tarafından Guido van Rossum's avatar Guido van Rossum

A missing piece of the PEP 269 patch: add PyParser_SetError(), a

wrapper around err_input().
üst d08e3824
...@@ -1264,6 +1264,15 @@ PyParser_SimpleParseStringFilename(const char *str, const char *filename, int st ...@@ -1264,6 +1264,15 @@ PyParser_SimpleParseStringFilename(const char *str, const char *filename, int st
start, 0); start, 0);
} }
/* May want to move a more generalized form of this to parsetok.c or
even parser modules. */
void
PyParser_SetError(perrdetail *err)
{
err_input(err);
}
/* Set the error appropriate to the given input error code (see errcode.h) */ /* Set the error appropriate to the given input error code (see errcode.h) */
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment