Skip to content
Merged
Prev Previous commit
Next Next commit
Fetch state by module def in _io__Buffered_seek_impl()
  • Loading branch information
erlend-aasland committed May 9, 2023
commit b22b41d7858ae234fd25ec7e86cee827688cfa7e
2 changes: 1 addition & 1 deletion Modules/_io/bufferedio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ _io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence)

CHECK_CLOSED(self, "seek of closed file")

_PyIO_State *state = IO_STATE();
_PyIO_State *state = find_io_state_by_def(Py_TYPE(self));
if (_PyIOBase_check_seekable(state, self->raw, Py_True) == NULL) {
return NULL;
}
Expand Down