]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-132174: Fix function name in error message of `_interpreters.run_string...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Apr 2025 08:46:13 +0000 (10:46 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Apr 2025 08:46:13 +0000 (10:46 +0200)
gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175)
(cherry picked from commit f2daa96c81a45b26bdcf3d5c3887cec02137974e)

Co-authored-by: sobolevn <mail@sobolevn.me>
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 8f912d803ba519aabed43852483e1cc0ee897884..8f7106b6f1ac2a6b9bc7046664de45df0b4cdec0 100644 (file)
@@ -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;