From 0988ed09b4c058fabb58a7ea7e757adafcf8763c Mon Sep 17 00:00:00 2001 From: Erlend Egeberg Aasland Date: Fri, 7 May 2021 15:15:01 +0200 Subject: bpo-44047: Remove unused argument to _pysqlite_seterror (GH-25915) --- Modules/_sqlite/cursor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Modules/_sqlite/cursor.c') diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 60dfc7dce8..b71f780a0b 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -537,7 +537,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation } } (void)pysqlite_statement_reset(self->statement); - _pysqlite_seterror(self->connection->db, NULL); + _pysqlite_seterror(self->connection->db); goto error; } @@ -715,7 +715,7 @@ pysqlite_cursor_executescript(pysqlite_Cursor *self, PyObject *script_obj) &script_cstr); Py_END_ALLOW_THREADS if (rc != SQLITE_OK) { - _pysqlite_seterror(self->connection->db, NULL); + _pysqlite_seterror(self->connection->db); goto error; } @@ -730,13 +730,13 @@ pysqlite_cursor_executescript(pysqlite_Cursor *self, PyObject *script_obj) if (rc != SQLITE_DONE) { (void)sqlite3_finalize(statement); - _pysqlite_seterror(self->connection->db, NULL); + _pysqlite_seterror(self->connection->db); goto error; } rc = sqlite3_finalize(statement); if (rc != SQLITE_OK) { - _pysqlite_seterror(self->connection->db, NULL); + _pysqlite_seterror(self->connection->db); goto error; } @@ -802,7 +802,7 @@ pysqlite_cursor_iternext(pysqlite_Cursor *self) if (rc != SQLITE_DONE && rc != SQLITE_ROW) { (void)pysqlite_statement_reset(self->statement); Py_DECREF(next_row); - _pysqlite_seterror(self->connection->db, NULL); + _pysqlite_seterror(self->connection->db); return NULL; } -- cgit v1.2.1