summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-17 16:02:26 +0000
committerGuido van Rossum <guido@python.org>2003-04-17 16:02:26 +0000
commite1515c498696ff5e88fd91fd353ae7da7f8ebd21 (patch)
tree4c08a094f0cf66b60a3224869d9aa6026bd92a1e /Python/pythonrun.c
parent0c23b64fab68bf16260e72912ba5e30c8ec7a4c5 (diff)
downloadcpython-e1515c498696ff5e88fd91fd353ae7da7f8ebd21.tar.gz
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
wrapper around err_input().
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c9
1 files changed, 9 insertions, 0 deletions
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