Skip to content

Commit 0b538ce

Browse files
committed
fix copy-paste error
1 parent 4d2a362 commit 0b538ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ PyRun_FileExFlags(FILE *fp, const char *filename, int start, PyObject *globals,
16411641
static void
16421642
flush_io_stream(PyThreadState *tstate, PyObject *name)
16431643
{
1644-
PyObject *f = _PySys_GetAttr(tstate, &_Py_ID(stderr));
1644+
PyObject *f = _PySys_GetAttr(tstate, name);
16451645
if (f != NULL) {
16461646
PyObject *r = _PyObject_CallMethodNoArgs(f, &_Py_ID(flush));
16471647
if (r) {

0 commit comments

Comments
 (0)