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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;