Skip to content

Commit a21ef45

Browse files
committed
Remove redundant CHECK_CLOSED call
1 parent ad20cda commit a21ef45

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Modules/_io/bufferedio.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,8 +1383,6 @@ _io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence)
13831383
return NULL;
13841384
}
13851385

1386-
CHECK_CLOSED(self, "seek of closed file")
1387-
13881386
_PyIO_State *state = find_io_state_by_def(Py_TYPE(self));
13891387
if (_PyIOBase_check_seekable(state, self->raw, Py_True) == NULL) {
13901388
return NULL;

0 commit comments

Comments
 (0)