diff options
author | Guido van Rossum <guido@python.org> | 2003-04-17 16:02:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-04-17 16:02:26 (GMT) |
commit | 66ebd9124491aada8e3e6b5f3da7f5ec93019abf (patch) | |
tree | 4166125be8cb7dae29d19cd1fd2ace0060525263 | |
parent | d08e3824d40daa4c2fba9d6635256e44fe71936e (diff) | |
download | cpython-66ebd9124491aada8e3e6b5f3da7f5ec93019abf.zip cpython-66ebd9124491aada8e3e6b5f3da7f5ec93019abf.tar.gz cpython-66ebd9124491aada8e3e6b5f3da7f5ec93019abf.tar.bz2 |
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
wrapper around err_input().
-rw-r--r-- | Python/pythonrun.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b9d9530..a84186c 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 |