From: sobolevn Date: Mon, 7 Apr 2025 08:23:52 +0000 (+0300) Subject: gh-132174: Fix function name in error message of `_interpreters.run_string` (#132175) X-Git-Tag: v3.14.0a7~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2daa96c81a45b26bdcf3d5c3887cec02137974e;p=thirdparty%2FPython%2Fcpython.git gh-132174: Fix function name in error message of `_interpreters.run_string` (#132175) 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 707e654005bc..6cbf026469b4 100644 --- a/Modules/_interpretersmodule.c +++ b/Modules/_interpretersmodule.c @@ -1112,7 +1112,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;