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
Fix linting issues
  • Loading branch information
sepehr-rs committed May 21, 2026
commit 4d75cf9739b751cdfc8e3e193fa9a278f42fa9fe
8 changes: 4 additions & 4 deletions Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static int
connection_set_row_factory(pysqlite_Connection *self, PyObject *value, void *closure)
{
if (value == NULL) {
PyErr_SetString(PyExc_AttributeError,
PyErr_SetString(PyExc_AttributeError,
"cannot delete row_factory attribute");
return -1;
}
Expand All @@ -551,7 +551,7 @@ static int
connection_set_text_factory(pysqlite_Connection *self, PyObject *value, void *closure)
Comment thread
sepehr-rs marked this conversation as resolved.
Outdated
{
if (value == NULL) {
PyErr_SetString(PyExc_AttributeError,
PyErr_SetString(PyExc_AttributeError,
"cannot delete text_factory attribute");
return -1;
}
Expand Down Expand Up @@ -2655,9 +2655,9 @@ static PyGetSetDef connection_getset[] = {
{"in_transaction", pysqlite_connection_get_in_transaction, NULL},
{"autocommit", get_autocommit, set_autocommit},
{"__text_signature__", get_sig, NULL},
{"row_factory", (getter)connection_get_row_factory,
{"row_factory", (getter)connection_get_row_factory,
(setter)connection_set_row_factory},
{"text_factory", (getter)connection_get_text_factory,
{"text_factory", (getter)connection_get_text_factory,
(setter)connection_set_text_factory},
{NULL}
};
Expand Down
Loading