]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132174: Fix function name in error message of `_interpreters.run_string` (#132175)
authorsobolevn <mail@sobolevn.me>
Mon, 7 Apr 2025 08:23:52 +0000 (11:23 +0300)
committerGitHub <noreply@github.com>
Mon, 7 Apr 2025 08:23:52 +0000 (11:23 +0300)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Misc/NEWS.d/next/Library/2025-04-06-23-16-08.gh-issue-132174.dN4b-X.rst [new file with mode: 0644]
Modules/_interpretersmodule.c

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 (file)
index 0000000..fa868c3
--- /dev/null
@@ -0,0 +1 @@
+Fix function name in error message of ``_interpreters.run_string``.
index 707e654005bc596592e49e071c29be18e5bb815e..6cbf026469b4b23a77828df188898ea00be688ba 100644 (file)
@@ -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;