Skip to content

Commit 72d1f9d

Browse files
Update Modules/_io/textio.c
Co-authored-by: Peter Bierma <[email protected]>
1 parent aebcc98 commit 72d1f9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_io/textio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3175,8 +3175,9 @@ _io_TextIOWrapper_close_impl(textio *self)
31753175
}
31763176

31773177
static PyObject *
3178-
textiowrapper_iternext_locked(PyObject *op)
3178+
textiowrapper_iternext_lock_held(PyObject *op)
31793179
{
3180+
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(op);
31803181
PyObject *line;
31813182
textio *self = textio_CAST(op);
31823183

0 commit comments

Comments
 (0)