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 b9d9530..a84186c 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1264,6 +1264,15 @@
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