Skip to content

Commit a3b67fc

Browse files
committed
fix unused warning "self" in fileio.c
1 parent e82c2ca commit a3b67fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_io/fileio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,8 +1293,8 @@ fileio_get_mode(PyObject *op, void *closure)
12931293
static PyObject *
12941294
fileio_get_blksize(PyObject *op, void *closure)
12951295
{
1296-
fileio *self = PyFileIO_CAST(op);
12971296
#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
1297+
fileio* self = PyFileIO_CAST(op);
12981298
if (self->stat_atopen != NULL && self->stat_atopen->st_blksize > 1) {
12991299
return PyLong_FromLong(self->stat_atopen->st_blksize);
13001300
}

0 commit comments

Comments
 (0)