Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5e96fa

Browse files
committed
Fixed a serious typo.
1 parent 28f739a commit f5e96fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/fileobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ file_writelines(PyFileObject *f, PyObject *args)
10201020
if (line == NULL)
10211021
goto error;
10221022
Py_DECREF(v);
1023-
PyList_SET_ITEM(list, i, v);
1023+
PyList_SET_ITEM(list, i, line);
10241024
}
10251025
}
10261026

0 commit comments

Comments
 (0)