Skip to content

Commit ed28f2f

Browse files
miss-islingtonsobolevnbrianschubert
authored
[3.13] gh-132174: Fix function name in error message of _interpreters.run_string (GH-132175) (#132209)
gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175) (cherry picked from commit f2daa96) Co-authored-by: sobolevn <[email protected]> Co-authored-by: Brian Schubert <[email protected]>
1 parent 7e9c577 commit ed28f2f

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
@@ -1113,7 +1113,7 @@ interp_run_string(PyObject *self, PyObject *args, PyObject *kwds)
11131113
return NULL;
11141114
}
11151115

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

0 commit comments

Comments
 (0)