8000 gh-132174: Fix function name in error message of `_interpreters.run_s… · python/cpython@f2daa96 · GitHub
[go: up one dir, main page]

Skip to content

Commit f2daa96

Browse files
gh-132174: Fix function name in error message of _interpreters.run_string (#132175)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
1 parent af8d1b9 commit f2daa96

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix function name in error message of ``_interpreters.run_string``.

Modules/_interpretersmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ interp_run_string(PyObject *self, PyObject *args, PyObject *kwds)
11121112
return NULL;
11131113
}
11141114

1115-
script = (PyObject *)convert_script_arg(script, MODULE_NAME_STR ".exec",
1115+
script = (PyObject *)convert_script_arg(script, MODULE_NAME_STR ".run_string",
11161116
"argument 2", "a string");
11171117
if (script == NULL) {
11181118
return NULL;

0 commit comments

Comments
 (0)
0