Skip to content

Commit 3d4a61a

Browse files
Apply the style nitpicks.
1 parent 110140b commit 3d4a61a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/_sqlite/cursor.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,16 +1405,16 @@ static struct PyMemberDef cursor_members[] =
14051405
};
14061406

14071407
static PyObject *
1408-
cursor_get_row_factory(PyObject *op, void *closure)
1408+
cursor_get_row_factory(PyObject *op, void *Py_UNUSED(closure))
14091409
{
1410-
pysqlite_Cursor *self = (pysqlite_Cursor *)op;
1410+
pysqlite_Cursor *self = _pysqlite_Cursor_CAST(op);
14111411
return Py_NewRef(self->row_factory);
14121412
}
14131413

14141414
static int
1415-
cursor_set_row_factory(PyObject *op, PyObject *value, void *closure)
1415+
cursor_set_row_factory(PyObject *op, PyObject *value, void *Py_UNUSED(closure))
14161416
{
1417-
pysqlite_Cursor *self = (pysqlite_Cursor *)op;
1417+
pysqlite_Cursor *self = _pysqlite_Cursor_CAST(op);
14181418
if (value == NULL) {
14191419
PyErr_SetString(PyExc_AttributeError,
14201420
"cannot delete row_factory attribute");

0 commit comments

Comments
 (0)