Visitar URL original
gh-101819: Refactor _io in preparation for module isolation by erlend-aasland · Pull Request #104334 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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