]> granicus.if.org Git - python/commitdiff
A missing piece of the PEP 269 patch: add PyParser_SetError(), a
authorGuido van Rossum <guido@python.org>
Thu, 17 Apr 2003 16:02:26 +0000 (16:02 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Apr 2003 16:02:26 +0000 (16:02 +0000)
wrapper around err_input().

Python/pythonrun.c

index b9d9530ac05129916523b65f6cc31af914124c67..a84186c88846e4249704500bc7cefbd4b5b96778 100644 (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