gh-132174: Fix function name in error message of _interpreters.run_string (#132175)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
This commit is contained in:
sobolevn
2025-04-07 11:23:52 +03:00
committed by GitHub
parent af8d1b9537
commit f2daa96c81
2 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1 @@
Fix function name in error message of ``_interpreters.run_string``.

View 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;