mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
af8d1b9537
commit
f2daa96c81
2 changed files with 2 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
Fix function name in error message of ``_interpreters.run_string``.
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue