gh-92206: Move pysqlite_step() to Modules/_sqlite/cursor.c (#92207)

This commit is contained in:
Erlend Egeberg Aasland 2022-05-02 21:45:04 -06:00 committed by GitHub
parent 39e6b8ae6a
commit e846fe3fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 16 deletions

View file

@ -24,18 +24,6 @@
#include "module.h"
#include "connection.h"
int
pysqlite_step(sqlite3_stmt *statement)
{
int rc;
Py_BEGIN_ALLOW_THREADS
rc = sqlite3_step(statement);
Py_END_ALLOW_THREADS
return rc;
}
// Returns non-NULL if a new exception should be raised
static PyObject *
get_exception_class(pysqlite_state *state, int errorcode)