Skip to content

Commit

Permalink
fix copy-paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Mar 16, 2023
1 parent 4d2a362 commit 0b538ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/pythonrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ PyRun_FileExFlags(FILE *fp, const char *filename, int start, PyObject *globals,
static void
flush_io_stream(PyThreadState *tstate, PyObject *name)
{
PyObject *f = _PySys_GetAttr(tstate, &_Py_ID(stderr));
PyObject *f = _PySys_GetAttr(tstate, name);
if (f != NULL) {
PyObject *r = _PyObject_CallMethodNoArgs(f, &_Py_ID(flush));
if (r) {
Expand Down

0 comments on commit 0b538ce

Please sign in to comment.