From: Guido van Rossum Date: Thu, 17 Apr 2003 16:02:26 +0000 (+0000) Subject: A missing piece of the PEP 269 patch: add PyParser_SetError(), a X-Git-Tag: v2.3c1~1153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66ebd9124491aada8e3e6b5f3da7f5ec93019abf;p=python A missing piece of the PEP 269 patch: add PyParser_SetError(), a wrapper around err_input(). --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b9d9530ac0..a84186c888 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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