Skip to content

Commit aa9a179

Browse files
committed
refactor(io): preserve detach state update order
1 parent 7e1eedd commit aa9a179

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/_io/textio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,8 @@ _io_TextIOWrapper_detach_impl(textio *self)
16431643
if (buffer == NULL) {
16441644
return NULL;
16451645
}
1646-
self->detached = 1;
16471646
Py_CLEAR(self->buffer);
1647+
self->detached = 1;
16481648
return buffer;
16491649
}
16501650

0 commit comments

Comments
 (0)