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

wrapper around err_input().
This commit is contained in:
Guido van Rossum 2003-04-17 16:02:26 +00:00
parent d08e3824d4
commit 66ebd91244
1 changed files with 9 additions and 0 deletions

View File

@ -1264,6 +1264,15 @@ PyParser_SimpleParseStringFilename(const char *str, const char *filename, int st
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) */
static void