From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 8 Apr 2025 08:46:13 +0000 (+0200) Subject: [3.13] gh-132174: Fix function name in error message of `_interpreters.run_string... X-Git-Tag: v3.13.3~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed28f2f42ace9fd98032b881bb3a663788d690e7;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175) (#132209) gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175) (cherry picked from commit f2daa96c81a45b26bdcf3d5c3887cec02137974e) Co-authored-by: sobolevn Co-authored-by: Brian Schubert --- diff --git a/Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst b/Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst new file mode 100644 index 000000000000..fa868c372198 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst @@ -0,0 +1 @@ +Fix function name in error message of ``_interpreters.run_string``. diff --git a/Modules/_interpretersmodule.c b/Modules/_interpretersmodule.c index 8f912d803ba5..8f7106b6f1ac 100644 --- a/Modules/_interpretersmodule.c +++ b/Modules/_interpretersmodule.c @@ -1113,7 +1113,7 @@ interp_run_string(PyObject *self, PyObject *args, PyObject *kwds) return NULL; } - script = (PyObject *)convert_script_arg(script, MODULE_NAME_STR ".exec", + script = (PyObject *)convert_script_arg(script, MODULE_NAME_STR ".run_string", "argument 2", "a string"); if (script == NULL) { return NULL;